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

add build workflow #195

Merged
merged 2 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# vim:sw=2:ts=2
# build html version of docs
name: build

# on events
on:
pull_request:
branches:
- master
- 'feature/*'

jobs:
build:
runs-on: ubuntu-latest
name: build

steps:
- uses: actions/checkout@v4
- uses: sphinx-doc/github-problem-matcher@master

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt

- name: Build docs
run: |
make clean html SPHINXOPTS="-W --keep-going -n"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The full documentation can be found on <https://docs.phoenix-rtos.com/>.

This repository contains all the necessary files needed to build
Phoenix-RTOS Documentation using [https://github.com/sphinx-doc/sphinx](sphinx).
Phoenix-RTOS Documentation using [sphinx](https://github.com/sphinx-doc/sphinx).

It can be done using the following command:

Expand Down
2 changes: 1 addition & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
]

templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
exclude_patterns = ['README.md', '_build', 'Thumbs.db', '.DS_Store']
myst_heading_anchors = 3
pygments_dark_style = 'tango'

Expand Down
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sphinx==7.2.6
adamdebek marked this conversation as resolved.
Show resolved Hide resolved
sphinx_copybutton==0.5.2
myst-parser==2.0.0
furo==2024.1.29
pygments==2.17.2
Loading