@tobi-or-not/docpress 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -104,3 +104,26 @@ In this command:
104
104
  > Ensure Docker is installed and running on your system before using this method.
105
105
 
106
106
  Both methods provide the same functionality, so you can choose the one that fits your setup or use case.
107
+
108
+ ## Rules
109
+
110
+ To ensure that the program functions correctly, please follow these conventions:
111
+
112
+ 1. __Documentation folder structure__:
113
+ - The script will only parse the `docs/` folder located at the root level of the repository. This folder is used to import advanced documentation features, such as multi-page documentation, embedded images, and files.
114
+
115
+ 2. __File naming and sorting__:
116
+ - If a `docs/` folder is present, all files within it will be sorted and renamed by removing any prefix numbers. This ensures that files appear cleanly in the generated website. For example, `docs/01-get-started.md` will be renamed to `get-started.md`.
117
+
118
+ 3. __Handling the root readme file__:
119
+ - The `README.md` file located at the root of the repository will only be imported if there is no `./docs/01-readme.md` file present. This allows you to differentiate between the general README and the advanced documentation introduction page.
120
+ - For instance, you might use the README file for a table of contents that is not relevant in the context of the documentation website.
121
+
122
+ 4. __Link management__:
123
+ - Any inline link in the `./README.md` file that does not point to `./docs/**` will be replaced with the corresponding GitHub link.
124
+ - Similarly, any inline link in the `./docs/*.md` files that does not reference `./docs/**` will also be replaced with the appropriate GitHub link.
125
+
126
+ 5. __Project descriptions__:
127
+ - The project description displayed on the home page of the generated website is extracted from the GitHub repository's description.
128
+
129
+ By adhering to these rules, you can ensure that your documentation is processed correctly and that it aligns with the intended structure and functionality of the generated site.