tfscript/docs/README.md

29 lines
915 B
Markdown
Raw Permalink Normal View History

2022-08-09 18:48:18 -04:00
# Building Documentation
2022-08-11 13:45:22 -04:00
This is the documentation that appears on [The tfscript website](https://tfscript.nickhope.world/).
## Building the Docs
Before you can build the docs, you have to do the _Prerequisites_ below.
2022-08-09 18:48:18 -04:00
1. Run `make html`
2. The docs appear in `docs/build/html`. You can open them in a browser (e.g., on Mac do `open docs/build/html/index.html`)
2022-08-11 13:45:22 -04:00
3. Run `sync.sh` to upload it to the S3 bucket (only works if you have the right profile/permissions in AWS)
## Prerequisites
I recommend building a Python [**venv**](https://docs.python.org/3/library/venv.html).
2022-08-13 16:17:20 -04:00
### Windows
1. Make the virtual environment `python3 -m venv .venv`
2. Activate it:
- Windows: `.venv\Scripts\activate`
2022-08-14 18:45:34 -04:00
- Other: `source .venv/bin/activate`
2022-08-13 16:17:20 -04:00
3. Install all the requirements into it:
1. `pip install -r requirements.txt`
2. `pip3 install -e .`
2022-08-11 13:45:22 -04:00
Now you can run the steps above in the **Building** section.