Skip to content

Commit

Permalink
Merge pull request #1 from arnauqb/docs
Browse files Browse the repository at this point in the history
new docs
  • Loading branch information
arnauqb committed May 12, 2023
2 parents ebc5846 + 833347e commit 97936ae
Show file tree
Hide file tree
Showing 16 changed files with 1,034 additions and 334 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,3 @@ jobs:
with:
token: ${{secrets.CODECOV_TOKEN}}
verbose: true

- name: Install docs dependencies
run: |
pip install sphinx furo
- name: Sphinx build
run: |
sphinx-build docs _build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true
41 changes: 41 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build docs

on:
push:
branches:
- main

jobs:
build:
strategy:
matrix:
python-version: [ 3.9 ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .
python -m pip install -r docs/requirements.txt
- name: Build docs
run: |
mkdocs build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: site
force_orphan: true
909 changes: 909 additions & 0 deletions docs/_static/logo_small.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions docs/_static/mathjax.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
window.MathJax = {
tex: {
inlineMath: [["\\(", "\\)"]],
displayMath: [["\\[", "\\]"]],
processEscapes: true,
processEnvironments: true
},
options: {
ignoreHtmlClass: ".*|",
processHtmlClass: "arithmatex"
}
};

document$.subscribe(() => {
MathJax.typesetPromise()
})
44 changes: 0 additions & 44 deletions docs/_templates/autosummary/module.rst

This file was deleted.

12 changes: 0 additions & 12 deletions docs/api.rst

This file was deleted.

3 changes: 3 additions & 0 deletions docs/api/infer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Infer

:::birds.infer
29 changes: 0 additions & 29 deletions docs/birds.models.rst

This file was deleted.

45 changes: 0 additions & 45 deletions docs/birds.rst

This file was deleted.

152 changes: 0 additions & 152 deletions docs/conf.py

This file was deleted.

1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# BIRDS documentation
22 changes: 0 additions & 22 deletions docs/index.rst

This file was deleted.

Loading

0 comments on commit 97936ae

Please sign in to comment.