fr-docs 0.1.0__py3-none-any.whl
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.
- fr_docs/__init__.py +3 -0
- fr_docs/__main__.py +19 -0
- fr_docs/build.py +1121 -0
- fr_docs/config.py +155 -0
- fr_docs/template.py +170 -0
- fr_docs-0.1.0.dist-info/METADATA +141 -0
- fr_docs-0.1.0.dist-info/RECORD +11 -0
- fr_docs-0.1.0.dist-info/WHEEL +5 -0
- fr_docs-0.1.0.dist-info/entry_points.txt +2 -0
- fr_docs-0.1.0.dist-info/licenses/LICENSE.md +131 -0
- fr_docs-0.1.0.dist-info/top_level.txt +1 -0
fr_docs/__init__.py
ADDED
fr_docs/__main__.py
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""Entry point for fr-docs CLI.
|
|
2
|
+
|
|
3
|
+
Usage:
|
|
4
|
+
python -m fr_docs build [--production] [--config CONFIG]
|
|
5
|
+
fr-docs build [--production] [--config CONFIG]
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
import sys
|
|
9
|
+
|
|
10
|
+
from fr_docs.build import main
|
|
11
|
+
|
|
12
|
+
if __name__ == "__main__":
|
|
13
|
+
# If called as `python -m fr_docs build ...`, sys.argv[1] will be "build"
|
|
14
|
+
# If called as `fr-docs build ...`, sys.argv[1] will be "build"
|
|
15
|
+
# If called as `fr-docs ...` (no subcommand), sys.argv[1] will be the flags
|
|
16
|
+
args = sys.argv[1:]
|
|
17
|
+
if args and args[0] == "build":
|
|
18
|
+
args = args[1:]
|
|
19
|
+
main(args)
|