[Feat] - Add Contributors Page, Updated Docusaurus, Fix Linters
Description:
- This PR updates docusaurus to
v2.4.3 - Adds a page for thanking contributors
- Updated Notes Admonitions
- Adds Markdown Linter - Fixes #160 & Fixes #117
Hello, I am a code review bot on flows.network. Here are my reviews of code commits in this PR.
Overall, the patch includes several different sets of changes.
The first set of changes focuses on adding a new Markdown linting workflow and associated npm scripts. The potential issues to address include ensuring the appropriateness of the .markdown-lint.yml configuration file, verifying the security and reliability of third-party actions used, checking the dependencies and functionality of the added npm scripts, reviewing the flow of changes to avoid conflicts or unintended consequences, and considering the need for tests. Additionally, the potential performance impact of pre-commit hooks should be evaluated, and proper documentation should be provided.
The second set of changes involves documentation updates. The potential problems to address include inconsistent use of references to issues, lack of clarity and formatting for notes, and the possibility of introducing errors or inconsistencies.
The third set of changes relates to the addition of new files and renaming existing ones in the documentation structure. While there don't seem to be any potential problems, it is important to review the contents of the new and modified files, ensure proper linking and integration, maintain consistent naming conventions and directory structure, and consider any dependencies or interrelationships.
Lastly, the patch includes straightforward updates to Docusaurus and its dependencies, as well as the Algolia packages, with no potential problems identified.
In summary, the patch encompasses various changes, including the addition of a Markdown linting workflow, documentation updates, modifications to the documentation structure, and dependency updates. The potential issues and errors are primarily focused on ensuring appropriateness, security, reliability, functionality, performance impact, and proper documentation.
Details
Commit e3b5c2bb1d09c0ce2ca47d919932e757e8cb78e8
Key changes in the patch:
-
Added a new workflow called "Markdown Lint" in the
.github/workflows/lint.ymlfile. This workflow is triggered when there are changes in Markdown files (**/*.md). It uses theDavidAnson/markdownlint-cli2-actionaction to perform Markdown linting using a configuration file located at.github/linters/.markdown-lint.yml. -
Modified the
.husky/pre-commitfile to include a new commandnpm run lint:md-fixafternpm run lint-staged --allow-empty. This command runs Markdown linting and fixes any issues found in the staged Markdown files. -
Added new npm scripts in the
package.jsonfile:-
lint:md: Runs Markdown linting using themarkdownlint-cli2package on all Markdown files (**/*.md). -
lint:md-fix: Runs Markdown linting and fixes any issues using themarkdownlint-cli2-fixpackage on all Markdown files (**/*.md).
-
Potential problems:
-
It's unclear what the
.github/linters/.markdown-lint.ymlconfiguration file contains. Reviewers should ensure that the configuration is appropriate for the project's needs. -
Reviewers should check if the actions used (
actions/checkout,tj-actions/changed-files, andDavidAnson/markdownlint-cli2-action) are reputable and have been widely used. It's important to verify the security and reliability of third-party actions. -
It's important to review the changes to the
package.jsonfile and ensure that the newly added npm scripts (lint:mdandlint:md-fix) have appropriate dependencies installed and the scripts are functioning correctly. -
Reviewers should examine the flow of the changes and verify there are no conflicts or unintended consequences with the existing linting workflows and scripts.
-
The patch does not include any tests for the new markdown linting functionality. Reviewers should consider if tests are necessary and request the developer to include them if needed.
-
The patch modifies the
.husky/pre-commitfile, which suggests that it introduces automatic linting and fixing on pre-commit hooks. This could potentially slow down the commit process if linting and fixing take too long. Reviewers should ensure that the performance impact is acceptable. -
It is crucial to analyze the documentation and guidelines to understand how the Markdown linting process should be integrated into the development workflow correctly. Documentation in the form of README updates or pull request descriptions should be present to guide developers on how to use the new linting feature.
These potential problems should be addressed before merging the changes.
Commit 617a9d982aee3a8a62d02e920cd973514a7cd96d
Key changes:
- Updated documentation in
docs/contribute/contribute.mdto include references to issues and check the CI. - Added information about feature requests process in
docs/contribute/contribute.md. - Added a note and fixed formatting in
docs/embed/go/reference/0.9.x.md. - Added a note and fixed formatting in
docs/start/usage/serverless/vercel.md. - Added a note and fixed formatting in
i18n/zh/docusaurus-plugin-content-docs/current/start/usage/serverless/vercel.md.
Potential problems:
- Inconsistent use of references to issues in the documentation.
- Lack of clarity in the use of notes and lack of consistent formatting for notes.
- The changes in the documentation may introduce inconsistencies or errors if not reviewed thoroughly.
Overall, the changes seem fine, but it is recommended to review the consistency in referencing issues and the use of notes.
Commit 5d9a4deb16bcb6613e5a61f31afbde131fd0abcf
Key changes in this patch include:
- Added a new file
docs/contribute/community/_category_.jsonto define a label and link for the "WasmEdge Users and Contributors" category. - Added a new file
docs/contribute/community/contributors.mdto display a page for recognizing and thanking contributors. - Renamed the file
docs/contribute/users.mdtodocs/contribute/community/users.md. - Added a new file
i18n/zh/docusaurus-plugin-content-docs/current/contribute/community/_category_.jsonto define the same label and link for the Chinese translation of the "WasmEdge Users and Contributors" category. - Added a new file
i18n/zh/docusaurus-plugin-content-docs/current/contribute/community/contributors.mdto display a translated version of the contributors page. - Renamed the file
i18n/zh/docusaurus-plugin-content-docs/current/contribute/users.mdtoi18n/zh/docusaurus-plugin-content-docs/current/contribute/community/users.md.
Potential problems/considerations:
- There don't seem to be any potential problems with these changes, as they mainly involve adding new files and renaming existing ones. However, it's important to review the contents of the new and modified files to ensure they meet the project's requirements and standards.
- It would be helpful to check if the newly added files are properly linked and integrated with the existing documentation structure.
- The file naming conventions and directory structure should be consistent with the project's conventions.
- If there are any dependencies or interrelationships between the modified files and other parts of the project, those should be taken into account and reviewed as well.
Overall, it seems like a straightforward addition of a new page and directory structure.
Commit 64bf3cf892f06a180f1cd96b0e58b47516600fd7
Key changes:
- Update Docusaurus to version 2.4.3
- Updated dependencies of Docusaurus packages
- Updated dependencies of Algolia packages
Potential problems:
- There don't seem to be any potential problems in this patch. The changes are straightforward and involve updating dependencies to newer versions.
This PR is a WIP as Linter is Failing
Hi @adithyaakrishna
Could you please take a look at the CI tests? Thanks.