Skip to content
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
27 changes: 27 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,45 @@ permissions:
pages: write

jobs:
build-doxygen-xml:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Doxygen
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y doxygen
- name: Run Doxygen
run: doxygen Doxyfile
- name: Upload Doxygen documentation
uses: actions/upload-artifact@v4
with:
name: doxygen-documentation-xml
path: xml
build-sphinx:
runs-on: ubuntu-24.04
needs:
- build-doxygen-xml
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install Doxygen
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y doxygen
- name: Install dependencies
run: |
python3 -m pip install -r docs/requirements.txt
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: doxygen-documentation-xml
path: xml
- name: Configure project
run: >
cmake -S . -B build -D USE_DOCS=ON
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/build*
/xml
out
mpich
cmake-build-*
Expand Down
17 changes: 17 additions & 0 deletions Doxyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Project identity
PROJECT_NAME = "Parallel Programming Course"
PROJECT_BRIEF = "Parallel Programming Course"

# Input
INPUT = modules/core/task/include \
modules/core/task/src \
modules/core/util/include \
modules/core/util/src
FILE_PATTERNS = *.h *.c *.hpp *.cpp
RECURSIVE = YES

# Build
GENERATE_HTML = NO
GENERATE_LATEX = NO
GENERATE_XML = YES
XML_OUTPUT = xml
11 changes: 10 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,23 @@
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

import os

project = 'Parallel Programming Course'
copyright = '2025, Learning Process'
author = 'Learning Process'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = []
extensions = [
'breathe',
]

breathe_projects = {
"ParallelProgrammingCourse": os.path.join(os.path.dirname(__file__), "..", "xml"),
}
breathe_default_project = "ParallelProgrammingCourse"

templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Below is the table of contents for the Parallel Programming Course documentation
user_guide/environment
user_guide/submit_work
user_guide/ci
user_guide/api

.. toctree::
:maxdepth: 2
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Sphinx==8.1.3
sphinx-rtd-theme==3.0.2
sphinx-intl==2.3.1
breathe==4.36.0
8 changes: 8 additions & 0 deletions docs/user_guide/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
API Reference
=============

.. toctree::
:maxdepth: 1

.. doxygenindex::
:project: ParallelProgrammingCourse
Loading