-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate Sphinx documentation in Github pages (#10)
- Add sphinx documentation with breathe and doxygen - Add extra workflow to generate documentation - Add preview of srs_control
- Loading branch information
Showing
29 changed files
with
735 additions
and
280 deletions.
There are no files selected for viewing
This file contains 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 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,46 @@ | ||
name: publish-doc | ||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
artifact-gen: | ||
runs-on: macos-15 | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
submodules: 'true' | ||
- name: run doxygen | ||
run: | | ||
brew upgrade | ||
brew install doxygen graphviz cmake ninja | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install sphinx breathe sphinx-rtd-theme | ||
cmake --workflow --preset build-doc | ||
- uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: build/doc/sphinx | ||
retention-days: 1 | ||
|
||
deploy-doc: | ||
runs-on: macos-15 | ||
needs: artifact-gen | ||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains 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 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 |
---|---|---|
@@ -1,31 +1,41 @@ | ||
cmake_minimum_required(VERSION 3.28) | ||
|
||
include(${CMAKE_SOURCE_DIR}/cmake/option_settings.cmake) | ||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) | ||
|
||
include(option_settings) | ||
|
||
set(ENV{CMAKE_ENABLE_TEST} ${ENABLE_TEST}) | ||
|
||
project( | ||
srs | ||
SRS-DAQ | ||
VERSION 0.1.1 | ||
LANGUAGES CXX C) | ||
|
||
include(${CMAKE_SOURCE_DIR}/cmake/install_config.cmake) | ||
include(${CMAKE_SOURCE_DIR}/cmake/project_config.cmake) | ||
include(${CMAKE_SOURCE_DIR}/cmake/check_compilers.cmake) | ||
if(BUILD_ONLY_DOC) | ||
add_subdirectory(doc) | ||
else() | ||
if(BUILD_DOC) | ||
add_subdirectory(doc) | ||
endif() | ||
include(install_config) | ||
include(project_config) | ||
include(check_compilers) | ||
|
||
set(CMAKE_CXX_STANDARD 23) | ||
set(CMAKE_CXX_EXTENSIONS ON) | ||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
set(CMAKE_CXX_SCAN_FOR_MODULES OFF) | ||
set(CMAKE_CXX_STANDARD 23) | ||
set(CMAKE_CXX_EXTENSIONS ON) | ||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
set(CMAKE_CXX_SCAN_FOR_MODULES OFF) | ||
|
||
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") | ||
list(APPEND CMAKE_CXX_FLAGS "-fexperimental-library") | ||
endif() | ||
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") | ||
list(APPEND CMAKE_CXX_FLAGS "-fexperimental-library") | ||
endif() | ||
|
||
include(${CMAKE_SOURCE_DIR}/cmake/import_packages.cmake) | ||
include(import_packages) | ||
|
||
add_subdirectory(frontend) | ||
add_subdirectory(backend) | ||
add_subdirectory(examples) | ||
if(ENABLE_TEST) | ||
add_subdirectory(test) | ||
add_subdirectory(frontend) | ||
add_subdirectory(backend) | ||
add_subdirectory(examples) | ||
if(ENABLE_TEST) | ||
add_subdirectory(test) | ||
endif() | ||
endif() |
This file contains 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 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 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
Oops, something went wrong.