|
1 | | -# Contributing |
| 1 | +# Contributing to DojoConsortium Documentation |
| 2 | + |
| 3 | +Thank you for your interest in contributing to the DojoConsortium documentation! This guide will help you get started. |
| 4 | + |
| 5 | +## Getting Started |
| 6 | + |
| 7 | +This documentation site is built with [Hugo](https://gohugo.io/) using the [Docsy](https://www.docsy.dev/) theme. |
| 8 | + |
| 9 | +### Prerequisites |
| 10 | + |
| 11 | +- Hugo Extended v0.151.2 or later |
| 12 | +- Node.js v22.20.0 (specified in `.nvmrc`) |
| 13 | +- npm |
| 14 | + |
| 15 | +### Local Development |
| 16 | + |
| 17 | +1. Clone the repository: |
| 18 | + ```bash |
| 19 | + git clone https://github.com/dojoconsortium/dojoconsortium.org.git |
| 20 | + cd dojoconsortium.org |
| 21 | + ``` |
| 22 | + |
| 23 | +2. Install dependencies: |
| 24 | + ```bash |
| 25 | + npm install |
| 26 | + ``` |
| 27 | + |
| 28 | +3. Run the development server: |
| 29 | + ```bash |
| 30 | + hugo server |
| 31 | + ``` |
| 32 | + |
| 33 | +4. Open your browser to `http://localhost:1313` |
| 34 | + |
| 35 | +## Content Guidelines |
| 36 | + |
| 37 | +### File Organization |
| 38 | + |
| 39 | +Documentation files are located in `content/en/docs/`: |
| 40 | + |
| 41 | +- `cd/` - Continuous Delivery practices and getting started guides |
| 42 | +- `work-decomposition/` - Work breakdown and planning |
| 43 | +- `workflow-management/` - Team workflow and collaboration |
| 44 | +- `testing/` - Test patterns and strategies |
| 45 | +- `metrics/` - Measurement and improvement |
| 46 | +- `reference/` - Glossary, checklists, and reference materials |
| 47 | + |
| 48 | +### Front Matter |
| 49 | + |
| 50 | +All documentation pages should include front matter with the following fields: |
| 51 | + |
| 52 | +```yaml |
| 53 | +--- |
| 54 | +title: "Clear, Descriptive Title" |
| 55 | +linkTitle: "Short Nav Title" # Optional, defaults to title |
| 56 | +weight: <number> # Required for ordering within section |
| 57 | +description: > |
| 58 | + Brief 1-2 sentence summary for SEO and previews. |
| 59 | + Focus on value and key concepts. |
| 60 | +tags: ["Category", "Topic", "Related"] |
| 61 | +--- |
| 62 | +``` |
| 63 | + |
| 64 | +### Using Hugo Shortcodes |
| 65 | + |
| 66 | +#### Glossary Links |
| 67 | + |
| 68 | +Use the glossary shortcode to link to terms defined in the [glossary](/docs/reference/glossary): |
| 69 | + |
| 70 | +```markdown |
| 71 | +{{< glossary "Continuous Integration" >}} |
| 72 | +{{< glossary term="WIP" display="Work in Progress" >}} |
| 73 | +``` |
| 74 | + |
| 75 | +Examples: |
| 76 | +- `{{< glossary "Continuous Delivery" >}}` → Links to glossary with term as text |
| 77 | +- `{{< glossary term="WIP" display="Work in Progress (WIP)" >}}` → Links to WIP with custom display text |
| 78 | + |
| 79 | +#### Info Boxes |
| 80 | + |
| 81 | +```markdown |
| 82 | +{{% alert title="Note" color="info" %}} |
| 83 | +Important information here |
| 84 | +{{% /alert %}} |
| 85 | +``` |
| 86 | + |
| 87 | +Colors: `primary`, `info`, `success`, `warning`, `danger` |
| 88 | + |
| 89 | +#### Code Blocks |
| 90 | + |
| 91 | +Use fenced code blocks with language specification: |
| 92 | + |
| 93 | +````markdown |
| 94 | +```javascript |
| 95 | +const example = "code here"; |
| 96 | +``` |
| 97 | +```` |
| 98 | + |
| 99 | +#### Diagrams |
| 100 | + |
| 101 | +Use Mermaid for diagrams: |
| 102 | + |
| 103 | +````markdown |
| 104 | +```mermaid |
| 105 | +graph LR |
| 106 | + A[Start] --> B[End] |
| 107 | +``` |
| 108 | +```` |
| 109 | + |
| 110 | +## Style Guide |
| 111 | + |
| 112 | +### Writing Style |
| 113 | + |
| 114 | +- Use clear, concise language |
| 115 | +- Write in second person ("you") when addressing the reader |
| 116 | +- Use active voice |
| 117 | +- Keep paragraphs short (3-5 sentences) |
| 118 | +- Use headings to break up content |
| 119 | + |
| 120 | +### Technical Terms |
| 121 | + |
| 122 | +- Define acronyms on first use |
| 123 | +- Link to glossary for standard terms using the `glossary` shortcode |
| 124 | +- Be consistent with terminology across pages |
| 125 | + |
| 126 | +### Code Examples |
| 127 | + |
| 128 | +- Provide working, tested examples |
| 129 | +- Include comments for complex logic |
| 130 | +- Show both the problem and solution |
| 131 | +- Support multiple languages where relevant |
| 132 | + |
| 133 | +## Submitting Changes |
| 134 | + |
| 135 | +1. Create a new branch for your changes: |
| 136 | + ```bash |
| 137 | + git checkout -b feature/your-feature-name |
| 138 | + ``` |
| 139 | + |
| 140 | +2. Make your changes and test locally with `hugo server` |
| 141 | + |
| 142 | +3. Commit your changes with a descriptive message: |
| 143 | + ```bash |
| 144 | + git add . |
| 145 | + git commit -m "Add section on X topic" |
| 146 | + ``` |
| 147 | + |
| 148 | +4. Push to your fork and create a pull request |
| 149 | + |
| 150 | +## Questions? |
| 151 | + |
| 152 | +- Open an issue for bugs or suggestions |
| 153 | +- Check existing documentation in `content/en/docs/` |
| 154 | +- Review the [Hugo documentation](https://gohugo.io/documentation/) |
| 155 | +- Review the [Docsy documentation](https://www.docsy.dev/docs/) |
0 commit comments