Skip to content

Commit

Permalink
Merge pull request #529 from AlexanderRichert-NOAA/pdoc_fix
Browse files Browse the repository at this point in the history
Build pdoc
  • Loading branch information
jbathegit authored Oct 10, 2023
2 parents 3e91d82 + be30977 commit fe0bd7d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/developer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
- name: install-deps
run: |
sudo apt-get update
sudo apt-get install doxygen
sudo python3 -m pip install -U gcovr
sudo apt-get install doxygen python3-numpy
sudo python3 -m pip install -U gcovr pdoc
- name: checkout
uses: actions/checkout@v3
Expand All @@ -40,12 +40,19 @@ jobs:
path: ~/data
key: data-10

- name: build-docs
run: |
mkdir bufr/build-docs
cd bufr/build-docs
cmake -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=./install -DCMAKE_BUILD_TYPE=Debug -DENABLE_DOCS=ON -DENABLE_PYTHON=ON ..
make doc python_docs
- name: build
run: |
cd bufr
mkdir build
cd build
cmake -DTEST_FILE_DIR=/home/runner/data -DCMAKE_INSTALL_PREFIX=./install -DCMAKE_Fortran_FLAGS="-Werror -g -fprofile-arcs -ftest-coverage -fprofile-abs-path -O0 -fsanitize=address -fno-omit-frame-pointer" -DCMAKE_C_FLAGS="-Werror -g -fprofile-arcs -ftest-coverage -fprofile-abs-path -O0 -fsanitize=address -fno-omit-frame-pointer" -DCMAKE_BUILD_TYPE=Debug -DENABLE_DOCS=On ..
cmake -DTEST_FILE_DIR=/home/runner/data -DCMAKE_INSTALL_PREFIX=./install -DCMAKE_Fortran_FLAGS="-Werror -g -fprofile-arcs -ftest-coverage -fprofile-abs-path -O0 -fsanitize=address -fno-omit-frame-pointer" -DCMAKE_C_FLAGS="-Werror -g -fprofile-arcs -ftest-coverage -fprofile-abs-path -O0 -fsanitize=address -fno-omit-frame-pointer" -DCMAKE_BUILD_TYPE=Debug -DENABLE_DOCS=OFF ..
make -j2 VERBOSE=1
make install
Expand All @@ -72,4 +79,4 @@ jobs:
with:
name: docs
path: |
bufr/build/docs/html
bufr/build-docs/docs/html
2 changes: 1 addition & 1 deletion docs/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## Documentation for the Python API for NCEPLIBS-bufr

* [The Python API documentation](https://noaa-emc.github.io/NCEPLIBS-bufr/python/index.html)
* [The Python API documentation](python/index.html)

## Introduction

Expand Down
1 change: 1 addition & 0 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ if(ENABLE_DOCS)
${CMAKE_COMMAND} -E env PYTHONPATH=${_lib_dir}:$ENV{PYTHONPATH}
${PDOC_EXECUTABLE} -o ../docs/html/python ./ncepbufr
)
add_dependencies(python_docs doc python_mod)
endif()

install(DIRECTORY ${_lib_dir} DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}/python${_PYVER})
Expand Down

0 comments on commit fe0bd7d

Please sign in to comment.