-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
100 additions
and
36 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Setup | ||
|
||
You will need the pipenv venv manager installed: | ||
|
||
```shell | ||
$ pip install pipenv --user | ||
``` | ||
|
||
Once pipenv is installed, run the following to set up a dev environment: | ||
|
||
```shell | ||
$ pipenv install --dev | ||
``` | ||
|
||
# Building Documentation | ||
|
||
Since the documentation is built with the package itself we use it for general testing. | ||
|
||
To set up: | ||
|
||
```shell | ||
$ pip install . --editable | ||
``` | ||
|
||
Will install the package to your venv and watch for changes. | ||
|
||
## Schemas | ||
|
||
You will also need to manually copy over the schemas folder from `menagerie/schemas/` to `docs/content/pages/schemas`, this is part of the run config on PyCharm already. | ||
|
||
## Generating | ||
|
||
Now, navigate to `docs/` and run the generate command to build. | ||
|
||
```shell | ||
$ python -m menagerie generate | ||
``` | ||
|
||
## Note for PyCharm users | ||
|
||
You're going to want to set `URL_PREFIX` to `/menagerie/docs/out/` if you plan on using the built-in web server. | ||
(A run config is included with the repo) | ||
|
||
## Note for CLI users | ||
|
||
You're going to want to set `URL_PREFIX` to the absolute path to `docs/out/` if you want to do everything from command line. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ Hide_In_Nav: True | |
Render_TOC: False | ||
|
||
|
||
# Cow | ||
# Secret | ||
|
||
Hidden Page Yay! | ||
You found a secret page! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters