|
1 | | -Record the development process of each feature in the IvorySQL development process |
| 1 | +# Ivorysql_docs |
| 2 | + |
| 3 | +[简体中文](./README_zh.md) | English |
| 4 | + |
| 5 | +## Introduction |
| 6 | + |
| 7 | +Welcome to the IvorySQL community documentation repository. This repository contains all documents presented at the [IvorySQL Documentation Center](https://docs.ivorysql.org), including release notes, getting started guides, advanced features, ecosystem, architecture design, Oracle compatibility feature list, community contribution guide, tool reference, FAQ, and more. |
| 8 | + |
| 9 | +## Contributing |
| 10 | + |
| 11 | +We warmly welcome your contributions to the documentation! If you'd like to participate, please read the [Contribution Scope](#contribution-scope), follow the [Writing Guidelines](#writing-guidelines), and submit according to the process rules. Once approved, your changes will appear on the community documentation center. |
| 12 | + |
| 13 | +If you have any comments or suggestions about the documentation, please submit them in an Issue. |
| 14 | + |
| 15 | +## Prerequisites |
| 16 | + |
| 17 | +(1) Download the Asciidoc or Typora document editor. |
| 18 | + |
| 19 | +(2) Check if the upstream repository has updates. If so, please sync to your own fork first: |
| 20 | + |
| 21 | +``` |
| 22 | +git remote |
| 23 | +
|
| 24 | +git fetch upstream |
| 25 | +
|
| 26 | +git merge upstream/main |
| 27 | +
|
| 28 | +git push |
| 29 | +``` |
| 30 | + |
| 31 | +(3) Familiarize yourself with the [Writing Guidelines](#writing-guidelines). |
| 32 | + |
| 33 | +## Contribution Scope |
| 34 | + |
| 35 | +IvorySQL community provides bilingual documentation. English documents are stored in `EN/` and Chinese documents in `CN/`. You can contribute to either or both. |
| 36 | + |
| 37 | +You can start with any of the following to help improve the documentation at [IvorySQL Documentation Center](https://docs.ivorysql.org): |
| 38 | + |
| 39 | +- (1) Write and improve documentation |
| 40 | +- (2) Fix typos or formatting issues (punctuation, spaces, indentation, code blocks, etc.) |
| 41 | +- (3) Correct or update inaccurate or outdated descriptions |
| 42 | +- (4) Add missing content (sentences, paragraphs, or new documents) |
| 43 | +- (5) Translate documentation changes from English to Chinese, or from Chinese to English |
| 44 | +- (6) Submit, reply to, and resolve documentation issues |
| 45 | +- (7) (Advanced) Review pull requests created by others |
| 46 | + |
| 47 | +## Writing Guidelines |
| 48 | + |
| 49 | +IvorySQL documentation is written in AsciiDoc. Please refer to the [adoc syntax quick reference](./adoc_syntax_quick_reference.md) for details. |
| 50 | + |
| 51 | +## Local Site Generation |
| 52 | + |
| 53 | +With the above preparation, you can contribute to the documentation and push to your personal ivorysql_docs fork. |
| 54 | + |
| 55 | +You may also want to know the location of the UI templates, as shown below: |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | +The web UI templates for Chinese and English are mostly identical, so modifications should be made to both templates simultaneously. |
| 60 | + |
| 61 | +If you have made extensive changes to the documentation, it is recommended to preview locally before submitting a PR. The steps are as follows: |
| 62 | + |
| 63 | +### Environment Setup |
| 64 | + |
| 65 | +Install Node.js (requires v16 or higher, v18+ recommended): |
| 66 | +``` |
| 67 | +# Using nvm (recommended) |
| 68 | +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash |
| 69 | +source ~/.bashrc |
| 70 | +nvm install 18 |
| 71 | +nvm use 18 |
| 72 | +``` |
| 73 | + |
| 74 | +Install Ruby and Asciidoctor PDF: |
| 75 | +``` |
| 76 | +sudo apt-get install -y ruby-full |
| 77 | +gem install asciidoctor-pdf --version "~>2.3.19" |
| 78 | +gem install rouge |
| 79 | +``` |
| 80 | + |
| 81 | +Install Antora and extensions: |
| 82 | +``` |
| 83 | +npm install |
| 84 | +``` |
| 85 | + |
| 86 | +Verify installation: |
| 87 | +``` |
| 88 | +npx antora -v |
| 89 | +``` |
| 90 | + |
| 91 | +### Build Steps |
| 92 | + |
| 93 | +The documentation site is built with `Antora`. The `ivory-doc-builder` repository is responsible for compilation: |
| 94 | + |
| 95 | +- `fork` the [ivory-doc-builder repository](https://github.com/IvorySQL/ivory-doc-builder) |
| 96 | +- `clone` the repository locally: |
| 97 | + |
| 98 | + `git clone https://github.com/yourname/ivory-doc-builder.git` |
| 99 | + |
| 100 | +- Run the build: |
| 101 | + |
| 102 | + ``` |
| 103 | + npm run build:cn # Build Chinese site |
| 104 | + npm run build:en # Build English site |
| 105 | + npm run build:all # Build both |
| 106 | + ``` |
| 107 | + |
| 108 | + Wait patiently. When it finishes successfully, you can find the generated site in `../www_publish_target/docs/`. |
| 109 | + |
| 110 | +After reviewing, you can submit a [PR](https://github.com/IvorySQL/ivorysql_docs). Thank you for your contribution to the community ^ _ ^ We will review and update the website accordingly. |
| 111 | + |
| 112 | +## Autobuild |
| 113 | + |
| 114 | +Every PR submitted to the ivorysql_docs repository will generate Chinese and English Deploy Preview links in the PR conversation. Click the link to preview the changes. |
0 commit comments