|
1 | | -# Documentation site |
| 1 | +# Open Integration Engine™ Documentation |
2 | 2 |
|
3 | | -## Prerequisites |
| 3 | +Welcome to the official documentation repository for **Open Integration Engine™**. This website is built with [VitePress](https://vitepress.dev/) and hosted on GitHub Pages. |
4 | 4 |
|
5 | | -1. [Node](https://nodejs.org/en/download) of some sort |
6 | | - - _I'm using v22, but I'm sure v24 works too_ |
7 | | -2. [Bun](https://bun.sh/) |
| 5 | +We welcome contributions from the community! Whether you are fixing a typo, adding a new guide, or sharing a script example, your help is appreciated. |
8 | 6 |
|
9 | | -## Usage |
| 7 | +## Table of Contents |
10 | 8 |
|
11 | | -Run the development script for hot reloads |
12 | | -```sh |
| 9 | +- [Getting Started](#getting-started) |
| 10 | +- [Development Workflow](#development-workflow) |
| 11 | +- [Writing Guidelines](#writing-guidelines) |
| 12 | +- [Legal & Licensing](#legal--licensing) |
| 13 | + |
| 14 | +## Getting Started |
| 15 | + |
| 16 | +### Prerequisites |
| 17 | + |
| 18 | +- **Bun**: This project uses Bun for dependency management and as the runtime. [Install Bun](https://bun.sh/). |
| 19 | + |
| 20 | +### Installation |
| 21 | + |
| 22 | +1. **Fork the repository** to your own GitHub account. |
| 23 | + |
| 24 | +2. **Clone your fork** locally: |
| 25 | + |
| 26 | + ```bash |
| 27 | + git clone https://github.com/YOUR_USERNAME/docs-website.git |
| 28 | + cd docs-website |
| 29 | + ``` |
| 30 | + |
| 31 | +3. **Install dependencies**: |
| 32 | + |
| 33 | + ```bash |
| 34 | + bun install |
| 35 | + ``` |
| 36 | + |
| 37 | +### Running Locally |
| 38 | + |
| 39 | +To start the local development server with hot-reloading: |
| 40 | + |
| 41 | +```bash |
13 | 42 | bun run docs:dev |
14 | 43 | ``` |
15 | | -RUn the build script fo static ocmpilation |
16 | | -```sh |
17 | | -bun run docs:build |
| 44 | + |
| 45 | +The documentation will be accessible at `http://localhost:5173` (or the port shown in your terminal). |
| 46 | + |
| 47 | +## Development Workflow |
| 48 | + |
| 49 | +1. **Create a Branch:** Always work on a new branch for your changes. |
| 50 | + |
| 51 | + ```bash |
| 52 | + git checkout -b fix/typo-in-intro |
| 53 | + ``` |
| 54 | + |
| 55 | +2. **Make Changes:** Edit the Markdown files in the `docs` directory. |
| 56 | + |
| 57 | +3. **Update Navigation:** If you created a new file, update `.vitepress/config.mts` to include the new page in the sidebar. |
| 58 | + |
| 59 | +4. **Preview:** Ensure your changes look correct in the local browser preview. |
| 60 | + |
| 61 | +5. **Commit:** [Sign off](#developer-certificate-of-origin-dco) your commits. |
| 62 | + |
| 63 | + ```bash |
| 64 | + git commit -s -m "docs: fix typo in introduction" |
| 65 | + ``` |
| 66 | + |
| 67 | +6. **Push:** Push your branch to your fork. |
| 68 | + |
| 69 | +7. **Pull Request:** Open a Pull Request (PR) against the `main` branch of this repository. |
| 70 | + |
| 71 | +## Writing Guidelines |
| 72 | + |
| 73 | +* **Markdown Features:** We use [VitePress Markdown](https://vitepress.dev/guide/markdown). This supports standard Markdown as well as advanced features like custom containers, Vue components inside markdown, and more. |
| 74 | +* **Code Blocks:** Please use language-specific code fences (e.g., \`\`\`js) for syntax highlighting. |
| 75 | +* **Images:** You can store images in the same directory as the markdown file or in the `docs/public` directory. Reference them using relative paths. |
| 76 | + |
| 77 | +## Legal & Licensing |
| 78 | + |
| 79 | +To maintain the open and permissive nature of this documentation, we require all contributors to agree to the project's licensing terms and verify the origin of their contributions. |
| 80 | + |
| 81 | +### 1. Inbound License Agreement |
| 82 | + |
| 83 | +By submitting a Pull Request to this repository, you agree to the following licensing terms: |
| 84 | + |
| 85 | +* **Documentation Content (Text/Media):** You agree to license your text and media contributions under the **Creative Commons Attribution 4.0 International (CC-BY 4.0)** license. |
| 86 | +* **New Code Samples:** You agree to dedicate any *original* code you write for this project to the **Public Domain (CC0 1.0 Universal)**. |
| 87 | + |
| 88 | +### 2. Handling Third-Party & Copied Code |
| 89 | + |
| 90 | +If you are including code copied from another open source project (e.g., a community plugin, a library on GitHub, or a Stack Overflow snippet), **you generally do not have the right to re-license it under CC0.** |
| 91 | + |
| 92 | +In these cases, you **must preserve the original license** by including the license header directly inside the code block. |
| 93 | + |
| 94 | +* **Why?** Users often copy code via the "Copy" button on the rendered website. If the license is in a separate file, it gets left behind. The license must travel with the snippet. |
| 95 | +* **Requirement:** Identify the license of the code you are copying and ensure it is compatible with distribution in this documentation. |
| 96 | + |
| 97 | +**Example: Including an MPLv2 Licensed Snippet** |
| 98 | + |
| 99 | +```javascript |
| 100 | +/* |
| 101 | + * Copyright (c) 2026 Original Author Name |
| 102 | + * Licensed under the Mozilla Public License 2.0. |
| 103 | + * You may not use this file except in compliance with the License. |
| 104 | + * You may obtain a copy of the License at [https://mozilla.org/MPL/2.0/](https://mozilla.org/MPL/2.0/) |
| 105 | + */ |
| 106 | + |
| 107 | +export function importedCommunityLogic() { |
| 108 | + // ... existing code ... |
| 109 | +} |
| 110 | +``` |
| 111 | + |
| 112 | +### 3. Developer Certificate of Origin (DCO) |
| 113 | + |
| 114 | +We require all contributors to sign off on their commits to certify that they have the right to submit the code. We adhere to the **Developer Certificate of Origin (DCO) 1.1**. |
| 115 | + |
| 116 | +By signing off, you certify that: |
| 117 | +* You wrote the contribution, or |
| 118 | +* You have the right to submit it under the project's open source license (or preserve the existing license as described above). |
| 119 | + |
| 120 | +[Read the full DCO 1.1 text here.](https://developercertificate.org/) |
| 121 | + |
| 122 | +#### How to Sign Off |
| 123 | + |
| 124 | +You must add a `Signed-off-by` trailer to your commit message using your real name and email. |
| 125 | + |
| 126 | +**Important:** The name and email address in the `Signed-off-by` line **must match** the name and email address of the Git commit author. |
| 127 | + |
| 128 | +**Automatic Sign-off:** |
| 129 | + |
| 130 | +```bash |
| 131 | +git commit -s -m "docs: add example for custom plugin" |
| 132 | +``` |
| 133 | + |
| 134 | +**Resulting Commit Message:** |
| 135 | + |
| 136 | +```text |
| 137 | +docs: add example for custom plugin |
| 138 | +
|
| 139 | +Signed-off-by: Jane Doe <jane.doe@example.com> |
18 | 140 | ``` |
19 | 141 |
|
20 | | -_Powered by [VitePress](https://vitepress.dev/)_ |
| 142 | +### 4. Trademarks |
| 143 | + |
| 144 | +Open Integration Engine™, OIE™, and the OIE logo are trademarks of the Open Integration Engine project. |
0 commit comments