Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revamp docs #233

Merged
merged 70 commits into from
May 11, 2023
Merged
Show file tree
Hide file tree
Changes from 46 commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
4e3a010
Revamp docs
thomaspinder Apr 22, 2023
1901fca
Revamp docs
thomaspinder Apr 22, 2023
72e407f
Update workflows
thomaspinder Apr 22, 2023
ba3dc09
Ruff passing
thomaspinder Apr 22, 2023
c88c2c9
Resolve ruff issues
thomaspinder Apr 22, 2023
bfcfa55
Resolve ruff issues
thomaspinder Apr 22, 2023
b24b214
Drop usage of mu
thomaspinder Apr 22, 2023
fd22af0
Spell checker
thomaspinder Apr 22, 2023
3f6ab47
Sort imports correctly
thomaspinder Apr 22, 2023
1e55193
Revert to py files
thomaspinder Apr 22, 2023
e8177d0
Update pytrees.py
daniel-dodd Apr 24, 2023
41afb49
Add RBF dataclass text
thomaspinder Apr 24, 2023
981e7ef
Fix bold symbols
thomaspinder Apr 24, 2023
919b713
Show pre-commit
thomaspinder Apr 27, 2023
a0703fb
Fix clf example
thomaspinder Apr 27, 2023
1ea8b98
Update pytrees.py
daniel-dodd Apr 27, 2023
2990624
Update pytrees.py
daniel-dodd Apr 27, 2023
6fbe1ae
Resolve conflicts
thomaspinder Apr 28, 2023
36bf11a
Merge branch 'docs_update' of github.com:JaxGaussianProcesses/GPJax i…
thomaspinder Apr 28, 2023
243edfc
Merge branch 'v0.6' of github.com:JaxGaussianProcesses/GPJax into st/…
st-- Apr 28, 2023
5d3cb44
Merge pull request #242 from JaxGaussianProcesses/st/docs_update/merge
st-- Apr 28, 2023
f129775
fix spaces in shape strings
st-- Apr 28, 2023
5a8a41f
fix pytrees.py example
st-- Apr 28, 2023
1e2201e
Revert "fix spaces in shape strings"
st-- Apr 28, 2023
9774549
remaining manual changes (see 1e2201e5a0882040bdcd2d3f545aa56594d722e2)
st-- Apr 28, 2023
dea4934
ruff fixes
st-- Apr 28, 2023
79363ee
fix some types
st-- Apr 28, 2023
614646a
fix some more types
st-- Apr 28, 2023
7ae7069
fix some more more types
st-- Apr 28, 2023
c9ba0f5
Types fixed
thomaspinder Apr 28, 2023
8bb709a
Update lockfile
thomaspinder Apr 28, 2023
0928ea3
Fix bib
thomaspinder Apr 28, 2023
a407db4
Respond to Ti comments
thomaspinder Apr 28, 2023
0c47ec8
Clean up docstrings
thomaspinder Apr 28, 2023
3a16b9e
Rebase with v0.6
thomaspinder Apr 29, 2023
019c669
Simplify watermark
thomaspinder Apr 30, 2023
29facf5
Merge with v0.6
thomaspinder Apr 30, 2023
d81aff5
Update pytrees.py
daniel-dodd Apr 30, 2023
b9989e6
Merge branch 'docs_update' of https://github.com/JaxGaussianProcesses…
daniel-dodd Apr 30, 2023
a58b4a6
Update pytrees.py
daniel-dodd Apr 30, 2023
fd2973a
Update index.md
daniel-dodd Apr 30, 2023
07e9eb6
Update index.md
daniel-dodd Apr 30, 2023
b794278
Format doc
thomaspinder Apr 30, 2023
01c677c
Update pytrees.py
daniel-dodd Apr 30, 2023
ebedf96
Merge branch 'docs_update' of https://github.com/JaxGaussianProcesses…
daniel-dodd Apr 30, 2023
e5344f1
Update pytrees.py
daniel-dodd Apr 30, 2023
e0e414d
Update pytrees.py
daniel-dodd May 3, 2023
4c7367e
Update pytrees.py
daniel-dodd May 3, 2023
387e3e5
Update PyTree doc
thomaspinder May 5, 2023
1fa4e9b
Test code cells
thomaspinder May 5, 2023
d72466b
PyTrees update
thomaspinder May 9, 2023
40b9a3b
katex backend
thomaspinder May 9, 2023
e748bac
All docstrings updated
thomaspinder May 9, 2023
dc364f2
Resolve conflicts
thomaspinder May 9, 2023
ab44d43
Add katex install
thomaspinder May 9, 2023
bf667d3
Add target PR
thomaspinder May 9, 2023
2e38a5b
Remove ipynb
thomaspinder May 9, 2023
9b0af54
Update typing
thomaspinder May 9, 2023
bacf0ae
Merge with v0.6
thomaspinder May 9, 2023
fff2577
Update workflows
thomaspinder May 9, 2023
e78861b
Update markdown checks
thomaspinder May 10, 2023
44eceb2
Update docs/examples/README.md
thomaspinder May 10, 2023
ed9d1b5
Resolve 3.11 issue
thomaspinder May 10, 2023
61e3f36
Drop dupe doc
thomaspinder May 10, 2023
b40815e
Update README.md
thomaspinder May 10, 2023
90e2547
Fix factory bug
thomaspinder May 10, 2023
41c54c3
Merge branch 'docs_update' of github.com:JaxGaussianProcesses/GPJax i…
thomaspinder May 10, 2023
c8a8df6
Make API TOC entries lead with a capital letter
thomaspinder May 10, 2023
5c0bc5d
Improve TOC rendering
thomaspinder May 10, 2023
63d6046
Update formatting
thomaspinder May 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build the documentation

on:
push:
branches:
- main
pull_request:

jobs:
build:
# Functionality for testing documentation builds on multiple OSes and Python versions
name: Build docs (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.8"]

steps:
# Grap the latest commit from the branch
- name: Checkout the branch
uses: actions/[email protected]
with:
persist-credentials: false

# Create a virtual environment
- name: create Conda environment
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}

# Install Poetry and build the documentation
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.2.2
virtualenvs-create: false
virtualenvs-in-project: false
installer-parallel: true

- name: Build the documentation with Sphinx
run: |
poetry install --all-extras --with docs
conda install pandoc
poetry run mkdocs build

- name: Deploy Page 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: site
12 changes: 12 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Check linting
on:
push:
branches:
- main
pull_request:
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: chartboost/ruff-action@v1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.9"]
python-version: ["3.8"]

steps:
# Grap the latest commit from the branch
Expand Down Expand Up @@ -46,5 +46,4 @@ jobs:
run: |
poetry install --all-extras --with docs
conda install pandoc
cd docs
make html
poetry run mkdocs build
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ cython_debug/
.idea/
examples/_debug*
examples/testing/*
examples/*.ipynb
_debug/
workspace.code-workspace
scratch_nbs/
Expand Down
20 changes: 0 additions & 20 deletions .readthedocs.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ opt_posterior, history = gpx.fit(
train_data=D,
optim=optimiser,
num_iters=500,
safe=True
safe=True,
key = key
thomaspinder marked this conversation as resolved.
Show resolved Hide resolved
)

# Infer the predictive posterior distribution
Expand Down
23 changes: 23 additions & 0 deletions docs/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Like the technical community as a whole, the GPJax team and community is made up of a mixture of professionals and volunteers from all over the world, working on every aspect of the mission - including mentorship, teaching and connecting people.

Diversity is one of our huge strengths, but it can also lead to communication issues and unhappiness. To that end, we have a few ground rules that we ask people to adhere to when they're participating within this community and project. These rules apply equally to founders, mentors and those seeking help and guidance.

This isn't an exhaustive list of things that you can't do. Rather, take it in the spirit in which it's intended - a guide to make it easier to enrich all of us, the technical community and the conferences and usergroups we hope to guide new speakers to.

This code of conduct applies to all communication: this includes IRC, the mailing list, and other forums such as Skype, Google+ Hangouts, etc.

- Be welcoming, friendly, and patient.
- Be considerate. Your work will be used by other people, and you in turn will depend on the work of others. Any decision you make will affect users and colleagues, and you should take those consequences into account when making decisions.
- Be respectful. __Not all of us will agree all the time, but disagreement is no excuse for poor behaviour and poor manners.__ We might all experience some frustration now and then, but we cannot allow that frustration to turn into a personal attack. It's important to remember that a community where people feel uncomfortable or threatened is not a productive one. Members of the GPJax community should be respectful when dealing with other members as well as with people outside the GPJax community and with user groups/conferences, usergroup/conference organizers.
- Be careful in the words that you choose. Remember that sexist, racist, and other exclusionary jokes can be offensive to those around you. __Be kind and welcoming to others.__ Do not insult or put down other participants. Behave professionally. The harassment and exclusionary behaviour towards others is unacceptable. This includes, but is not limited to:
- Violent threats or language directed against another person.
- Discriminatory jokes and language.
- Posting sexually explicit or violent material.
- Posting (or threatening to post) other people's personally identifying information ("doxing").
- Personal insults, especially those using racist or sexist terms.
- Unwelcome sexual attention.
- Advocating for, or encouraging, any of the above behaviour.
- Repeated harassment of others. In general, if someone asks you to stop, then stop.
- When we disagree, we try to understand why. Disagreements, both social and technical, happen all the time and GPJax is no exception. It is important that we resolve disagreements and differing views constructively. Remember that we're different. The strength of GPJax comes from its varied community, people from a wide range of backgrounds. Different people have different perspectives on issues. Being unable to understand why someone holds a viewpoint doesn't mean that they're wrong. Don't forget that it is human to err and blaming each other doesn't get us anywhere, rather offer to help resolving issues and to help learn from mistakes.

Text adapted from the [Speak Up! project](http://web.archive.org/web/20141109123859/http://speakup.io/coc.html) and [Django](https://www.djangoproject.com/conduct/)
16 changes: 0 additions & 16 deletions docs/Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ documentation, then please either raise an issue or
## An example docstring

An example docstring that adheres the principles of GPJax is given below.
The docstring contains a simple, snappy introduction with links to auxillary
The docstring contains a simple, snappy introduction with links to auxiliary
components. More detail is then provided in the form of a mathematical
description and a code example. The docstring is concluded with a description
of the objects attributes with corresponding types.
Expand Down
Binary file added docs/_static/favicon.ico
Binary file not shown.
23 changes: 0 additions & 23 deletions docs/_templates/autosummary/gpjax_module.rst

This file was deleted.

Loading