From c052a7b20066c744ceb7b78ffecf8963ad2eae5e Mon Sep 17 00:00:00 2001 From: Akash Date: Mon, 12 Aug 2024 10:37:49 +0530 Subject: [PATCH 1/2] Added contributing.md --- docs/contributing.md | 88 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 docs/contributing.md diff --git a/docs/contributing.md b/docs/contributing.md new file mode 100644 index 0000000..041a53d --- /dev/null +++ b/docs/contributing.md @@ -0,0 +1,88 @@ +Contributing to Engineering Handbook +==================================== + +Thank you for your interest in contributing to the WordPress Engineering Handbook! We appreciate your help in making this resource even better. Below are some guidelines to ensure a smooth and effective contribution process. + + +### Ways to Contribute + ++ [Submit Ideas and Issues](#submit-an-idea-or-issue) ++ [Project Structure](#project-structure) ++ [Commands](#commands) ++ [Contributing a New Guide or Docs](#how-to-contribute) + + +### Submit an Idea or Issue + +Ideas and issues can be submitted at [https://github.com/Travelopia/wordpress-engineering-handbook/issues/new/choose](https://github.com/Travelopia/wordpress-engineering-handbook/issues/new/choose). + +Before submitting an issue, [search existing issues](https://github.com/Travelopia/wordpress-engineering-handbook/issues) and ensure you're not creating a duplicate. If the issue already exists you can add your information to the existing issue. + +## πŸš€ Project Structure + +Understanding the project structure will help you navigate the repository: + +``` +. +β”œβ”€β”€ public/ +β”œβ”€β”€ src/ +β”‚ β”œβ”€β”€ assets/ + β”œβ”€β”€ css/ + β”œβ”€β”€ images/ +β”‚ β”œβ”€β”€ content/ +β”‚ β”‚ β”œβ”€β”€ docs/ +β”‚ β”‚ └── config.ts +β”‚ └── env.d.ts +β”œβ”€β”€ astro.config.mjs +β”œβ”€β”€ package.json +└── tsconfig.json +``` + +- **`src/content/docs/`**: Contains the `.md` or `.mdx` files, which are exposed as routes based on their file names. +- **`src/assets/`**: Store images and other assets here. They can be embedded in Markdown with a relative link. +- **`public/`**: Place static assets like favicons in this directory. + + +## 🧞 Commands + +To contribute, you'll likely need to run some commands from the root of the project: + +| Command | Action | +| :------------------------ | :----------------------------------------------- | +| `npm install` | Installs dependencies | +| `npm run dev` | Starts local dev server at `localhost:4321` | +| `npm run build` | Build your production site to `./dist/` | +| `npm run preview` | Preview your build locally, before deploying | +| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | +| `npm run astro -- --help` | Get help using the Astro CLI | + + +## πŸ’‘ How to Contribute + +### 1. Adding a New Guide + +To add a new guide to the handbook: + +1. **Create a New File**: Add a new `.mdx` file in the `src/content/docs/` directory. +2. **Add Frontmatter**: Include frontmatter at the top of the file. Here’s an example: + ```md + --- + title: "New Guide" + description: "This is a new guide" + template: doc + --- + ``` +3. **Write Content**: Add your content below the frontmatter. +4. **Update Configuration**: Ensure the new guide is listed in `astro.config.mjs`. + +### 2. Submitting a Pull Request + +1. **Create an issue**: Before starting work on a new feature, docs or change, please open an issue to discuss the proposed changes. +2. **Create a New Branch**: Use a descriptive name for your branch (e.g., `add-new-guide`). +3. **Make Your Changes**: Implement your changes or additions following the project guidelines. +4. **Submit a Pull Request**: Open a pull request with a clear description of your changes. Reference any related issues if applicable and assign any maintainers for review. + +## πŸ’¬ Have Questions? +If you have any questions or need further assistance, feel free to open an issue or reach out to the maintainers of the handbook. + +We look forward to your contributions! 🌟 \ No newline at end of file From f0dd56348ade44d857384231c42cbc02997ae675 Mon Sep 17 00:00:00 2001 From: Akash Date: Tue, 20 Aug 2024 18:08:22 +0530 Subject: [PATCH 2/2] File name capitalization --- docs/{contributing.md => CONTRIBUTING.MD} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename docs/{contributing.md => CONTRIBUTING.MD} (100%) diff --git a/docs/contributing.md b/docs/CONTRIBUTING.MD similarity index 100% rename from docs/contributing.md rename to docs/CONTRIBUTING.MD