-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add readme with installation/development instructions
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
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,47 @@ | ||
# g-adopt.github.io | ||
|
||
You've reached the repository that powers [the G-ADOPT website][1]. | ||
It's powered by [MkDocs], using the [Material for MkDocs][2] | ||
theme. API documentation is generated using [mkdocstrings]. | ||
|
||
## Local development | ||
|
||
For simple development on the main content of the site, after cloning | ||
this repository, create a Python virtual environment, and install the | ||
required packages into it: | ||
|
||
$ python3 -m venv env | ||
$ source env/bin/activate | ||
(env) $ python3 -m pip install -r requirements.txt | ||
|
||
Start the MkDocs server, and the site will be available at http://localhost:8000 | ||
|
||
(env) $ python3 -m mkdocs serve | ||
|
||
### API documentation | ||
|
||
If you're working on the API documentation, there's an extra step | ||
regarding the repository from which to build the documentation. By | ||
default, MkDocs will look for a clone of [g-adopt] at the `g-adopt` | ||
path inside this repository. If you'd prefer to work with the | ||
repository at a different path, change the following key in the | ||
`mkdocs.yml` file: | ||
|
||
```yaml | ||
plugins: | ||
- mkdocstrings: | ||
handlers: | ||
python: | ||
paths: ... | ||
``` | ||
## Deployment | ||
Changes to the live website are automatically deployed from pushes to | ||
the `main` branch. | ||
|
||
[1]: https://gadopt.org | ||
[MkDocs]: https://www.mkdocs.org/ | ||
[2]: https://squidfunk.github.io/mkdocs-material/ | ||
[mkdocstrings]: https://mkdocstrings.github.io/ | ||
[g-adopt]: https://github.com/g-adopt/g-adopt |