-
Notifications
You must be signed in to change notification settings - Fork 57
Sphinx documentation update #1719
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
Draft
Davknapp
wants to merge
39
commits into
main
Choose a base branch
from
sphinx_documentation_update
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+140
−10
Draft
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
7ad4007
update creation of sphinx documentation
Davknapp f5e07fb
Add configuration file for readthedocs
Davknapp f0f8fa9
readthedocs specializations
Davknapp 87da7a4
update paths to Doxyfile.in
Davknapp f63e014
generate xml output
Davknapp ce2e21e
Added requirements
Davknapp 2e3554f
try relative paths
Davknapp 94e7b5e
try other folder
Davknapp 6a90182
mv requirements back and activate install part in yaml-file
Davknapp 6c23c0b
fix indent in yaml
Davknapp aab33b3
another indent fix
Davknapp aefeae9
add all requirements
Davknapp 909cc8b
update requirements
Davknapp e3d03e6
configure and build doxygen
Davknapp 7ecf515
try fix
Davknapp 5b58cf8
Add cmake to the tools used
Davknapp 0099e0c
try typo fix
Davknapp 7fd9ec6
fix cmake tool
Davknapp 3567547
fix cmake usage
Davknapp 35765fa
install sphinx as apt-package
Davknapp cd80d40
search for sphinx-build
Davknapp a49237b
add hints to find sphinx
Davknapp 4f8046f
Move build process
Davknapp 475b6f9
call script
Davknapp c324902
move bash call
Davknapp f5dbafe
build the documentation
Davknapp 72740d6
try to build via ninja
Davknapp 1dace73
update confi.in file
Davknapp b2e44ae
use the pre-build step to write var
Davknapp 9d7e210
another try
Davknapp 216285c
try to generte conf.py again
Davknapp a1f9112
try to fetch tags too
Davknapp 506258e
Build t8code without mpi for documenation
Davknapp a966c8f
move script call to build step
Davknapp 17098d1
try post_build
Davknapp 530fd66
Update configure
Davknapp 0ff009b
try post-install
Davknapp b01e7b5
import subprocess
Davknapp cd943ad
Merge branch 'main' into sphinx_documentation_update
Davknapp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# This file is part of t8code. | ||
# t8code is a C library to manage a collection (a forest) of multiple | ||
# connected adaptive space-trees of general element types in parallel. | ||
# | ||
# Copyright (C) 2025 the developers | ||
# | ||
# t8code is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 2 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# t8code is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with t8code; if not, write to the Free Software Foundation, Inc., | ||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
|
||
# Read the Docs configuration file for Sphinx projects | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the OS, Python version and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.12" | ||
apt_packages: | ||
- cmake | ||
- ninja-build | ||
jobs: | ||
post_checkout: | ||
- git fetch --unshallow --tags || true # Fetch all tags to ensure we can build documentation for any version | ||
post_install: | ||
- bash ./scripts/configure_for_rtd.sh | ||
|
||
# You can also specify other tool versions: | ||
# nodejs: "20" | ||
# rust: "1.70" | ||
# golang: "1.20" | ||
|
||
# Build documentation in the "docs/" directory with Sphinx | ||
sphinx: | ||
configuration: doc/source/conf.py | ||
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs | ||
# builder: "dirhtml" | ||
# Fail on all warnings to avoid broken references | ||
# fail_on_warning: true | ||
|
||
# Optionally build your docs in additional formats such as PDF and ePub | ||
# formats: | ||
# - epub | ||
|
||
# Optional but recommended, declare the Python requirements required | ||
# to build your documentation | ||
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html | ||
python: | ||
install: | ||
- requirements: doc/requirements.txt | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
breathe | ||
exhale | ||
sphinx | ||
sphinx-rtd-theme |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
git submodule init | ||
git submodule update | ||
|
||
# Create the build directory | ||
mkdir build | ||
|
||
# Navigate into the build directory | ||
cd build | ||
|
||
# Run cmake with the specified options | ||
cmake .. -DT8CODE_BUILD_DOCUMENTATION=ON -DT8CODE_BUILD_DOCUMENTATION_SPHINX=ON -DT8CODE_ENABLE_MPI=OFF | ||
|
||
# Build the project with make | ||
make -j V=0 | ||
|
||
# Return to the parent directory | ||
cd .. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.