Skip to content

Commit

Permalink
Move to mkdocs from Sphinx (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 authored Jul 15, 2024
1 parent 04c1a9c commit fbe5923
Show file tree
Hide file tree
Showing 59 changed files with 1,375 additions and 1,018 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: Python package

on: [push]
env:
POETRY_VERSION: 1.5
POETRY_VERSION: 1.8

permissions:
pull-requests: write

jobs:
testing:
Expand Down Expand Up @@ -80,9 +83,7 @@ jobs:
shell: bash
run: |
set -euo pipefail
pushd docs
poetry run make html
popd
poetry run mkdocs build --strict
- name: Upload code coverage
uses: codecov/[email protected]
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: readthedocs/actions
on:
pull_request_target:
types:
- opened
# Execute this action only on PRs that touch
# documentation files.
paths:
- "docs/**"

permissions:
pull-requests: write

jobs:
documentation-links:
runs-on: ubuntu-latest
steps:
- uses: readthedocs/actions/preview@v1
with:
project-slug: "fgpyo"
17 changes: 8 additions & 9 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.8"
sphinx:
configuration: docs/conf.py
python:
install:
- method: pip
path: .
extra_requirements:
- docs
python: "3.11"
jobs:
post_install:
- pip install poetry==1.8.3
- poetry config virtualenvs.create false
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --extras docs
mkdocs:
configuration: mkdocs.yml
3 changes: 2 additions & 1 deletion ci/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ banner "Executing in conda environment ${CONDA_DEFAULT_ENV} in directory fgpyo"
run "Style Checking" "ruff format fgpyo"
run "Linting" "ruff check --fix fgpyo"
run "Type Checking" "mypy -p fgpyo --config $parent/mypy.ini"
run "Unit Tests" "python -m pytest -vv -r sx fgpyo"
run "Unit Tests" "python -m pytest -vv -r sx tests"
run "Make docs" "poetry run mkdocs build --strict"

if [ -z "$failures" ]; then
banner "Checks Passed"
Expand Down
88 changes: 0 additions & 88 deletions docs/Makefile

This file was deleted.

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

This file was deleted.

Loading

0 comments on commit fbe5923

Please sign in to comment.