This guide provides instructions for setting up and running Docusaurus for contributors to the EKS Developers Workshop documentation. It includes steps to create a fork, manage branches, and best practices for contributing.
- Node.js (version 16.x or higher). To check your version, run:
node --version
. - npm (version 8.x or higher). To check your version, run:
npm --version
.
Before you can start contributing to the documentation, you need to set up Docusaurus locally.
- Fork the eks-workshop-developers repository.
- Clone the forked repository:
git clone https://github.com/your-gh-user-name/eks-workshop-developers.git
cd eks-workshop-developers/website
- Run the following command to install the required dependencies.
npm install
- Generate the static files for the documentation site:
npm run build
This command will create a /build
directory.
- To view the documentation site locally, run:
npm run serve
This will start a local development server. You will be redirected to workshop documentation in your browser. If you run into any issues building the documentation, see our troubleshooting guidance in the Docusaurus Maintenance Guide.
When you're ready to contribute to the documentation, follow these steps:
If you're planning significant updates such as modifying the contents of an existing lab exercise (like Dockerfile, docker-compose.yml, Kubernetes manifests, etc.) or creating new lab exercises, please adhere to our branching strategy:
- We maintain three primary branches in the python-fastapi-demo-docker repository: main, aws-opentelemetry, and aws-secrets-manager-lab.
- Depending on the nature of the update, it might be necessary to apply your changes to multiple branches.
- Always check the relevance of your update to each branch and coordinate with project maintainers for guidance on multi-branch updates.
From your forked repository, create a new branch for your feature or fix:
git checkout -b feature/your-feature-name
Replace your-feature-name
with a descriptive name for your feature.
- Make changes to the content or documentation as needed.
- Add or update markdown files within the docs directory.
- Follow Markdown Syntax and Docusaurus Syntax to format your documentation.
- Ensure your changes are working as expected.
- Run the development server to preview the changes.
- Make sure your changes adhere to the principles in our minimal Documentation Style Guide.
Stage your changes and commit them with a meaningful message:
git add .
git commit -m "Add a meaningful description of your changes"
Push your feature branch to your forked repository:
git push origin feature/your-feature-name
- Go to your forked repository on GitHub and click "Pull request" to open a new pull request against our repository.
- Keep Documentation Clear: Write clear, concise, and well-organized documentation.
- Branch Naming: Use descriptive branch names like feature/add-install-guide or fix/typo-in-docs.
- Commit Messages: Write meaningful commit messages that describe what the commit accomplishes.
- Pull Request Descriptions: In your pull request, include a detailed description of your changes and link to any relevant issues.
- Stay Updated: Regularly pull the latest changes from the upstream repository to keep your fork up-to-date.
- Respect Guidelines: Adhere to any contribution guidelines provided by the project maintainers.
If you have any questions or need assistance, don't hesitate to ask for help by opening an issue on the GitHub repository. The community and maintainers are here to help!
Thank you for contributing to the EKS Developers Workshop documentation!