|
1 | 1 | # CodeIgniter Documentation Project |
2 | 2 |
|
3 | | -The aim of this project is to convert the CodeIgniter User Guide from the existing reStructuredText format to Markdown format, |
4 | | -making it easier to maintain and contribute to, as well as allowing all of our projects to share a common documentation format. |
| 3 | +The aim of this project is to convert the CodeIgniter User Guide from the existing reStructuredText format |
| 4 | +to Markdown format, making it easier to maintain and contribute to, as well as allowing all of our projects |
| 5 | +to share a common documentation format. |
5 | 6 |
|
6 | 7 | ## Configuration |
7 | 8 |
|
8 | | -The converter can work with two different source types: |
9 | | - |
10 | | -1. **Local docs-rst folder** (default) - Uses the `docs-rst` folder in this project |
11 | | -2. **CodeIgniter4 project** - Points to a CodeIgniter4 project's `user_guide_src/source` folder for latest docs |
12 | | - |
13 | | -To configure, copy `.env.dist` to `.env` and modify as needed: |
| 9 | +The converter reads the user guide from the `user_guide_src/source` folder of a CodeIgniter4 checkout. |
| 10 | +To configure it, copy `.env.dist` to `.env` and set the path: |
14 | 11 |
|
15 | 12 | ```bash |
16 | 13 | cp .env.dist .env |
17 | | -``` |
18 | | - |
19 | | -Example configurations: |
20 | 14 |
|
21 | | -**For local docs-rst (default):** |
22 | | -```bash |
23 | | -DOCS_SOURCE_TYPE=local |
24 | | -DOCS_PROJECT_PATH= |
25 | | -``` |
26 | | - |
27 | | -**For CodeIgniter4 project:** |
28 | | -```bash |
29 | | -DOCS_SOURCE_TYPE=project |
30 | 15 | DOCS_PROJECT_PATH=/path/to/CodeIgniter4/user_guide_src/source/ |
31 | 16 | ``` |
32 | 17 |
|
33 | | -Environment variables of the same names take precedence over `.env`. |
| 18 | +An environment variable of the same name takes precedence over `.env`. |
34 | 19 |
|
35 | 20 | ## The Conversion Process |
36 | 21 |
|
37 | 22 | The conversion process is being done using pandoc to do the initial conversion. |
38 | 23 | From there, each section and file will be manually reviewed and cleaned up as needed. |
39 | 24 |
|
40 | | -Once the conversion is complete, we will start taking a look at the overall structure of the documentation and see what changes need |
41 | | -to be made for consistency, clarity, and ease of understanding. |
| 25 | +Once the conversion is complete, we will start taking a look at the overall structure of the documentation |
| 26 | +and see what changes need to be made for consistency, clarity, and ease of understanding. |
42 | 27 |
|
43 | 28 | ## Requirements |
44 | 29 |
|
45 | | -To convert, pandoc 3.12.1 is required. The converter warns when another version is installed. To install it, see <https://github.com/jgm/pandoc/releases/tag/3.12.1>. |
| 30 | +To convert, pandoc 3.12.1 is required. The converter warns when another version is installed. |
| 31 | +To install it, see <https://github.com/jgm/pandoc/releases/tag/3.12.1>. |
46 | 32 |
|
47 | | -Generation of the final documentation uses [MkDocs](https://www.mkdocs.org/) with the [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/) theme. See [How to Build Docs](./admin/how_to_build_docs.md) for more details. |
| 33 | +Generation of the final documentation uses [MkDocs](https://www.mkdocs.org/) with the |
| 34 | +[Material for MkDocs](https://squidfunk.github.io/mkdocs-material/) theme. |
| 35 | +See [How to Build Docs](./admin/how_to_build_docs.md) for more details. |
48 | 36 |
|
49 | 37 | ## Next Steps: |
50 | 38 |
|
@@ -90,4 +78,5 @@ The [Verify conversion](./.github/workflows/verify.yml) workflow runs both again |
90 | 78 |
|
91 | 79 | ### Previewing the converted files |
92 | 80 |
|
93 | | -See the [How to Build Docs](./admin/how_to_build_docs.md) document for instructions on building and previewing the converted files. |
| 81 | +See the [How to Build Docs](./admin/how_to_build_docs.md) document for instructions on building |
| 82 | +and previewing the converted files. |
0 commit comments