mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-26 14:45:52 +00:00
fix: Fix some doxygen docs errors (#2130)
This commit is contained in:
38
.github/workflows/docs.yml
vendored
38
.github/workflows/docs.yml
vendored
@@ -5,23 +5,14 @@ on:
|
|||||||
branches: [develop]
|
branches: [develop]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
pages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# Only cancel in-progress jobs or runs for the current workflow - matches against branch & tags
|
# Only cancel in-progress jobs or runs for the current workflow - matches against branch & tags
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
build:
|
||||||
environment:
|
|
||||||
name: github-pages
|
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
continue-on-error: true
|
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/xrplf/clio-ci:latest
|
image: ghcr.io/xrplf/clio-ci:latest
|
||||||
|
|
||||||
@@ -31,10 +22,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
lfs: true
|
lfs: true
|
||||||
|
|
||||||
- name: Build docs
|
- name: Create build directory
|
||||||
run: |
|
run: mkdir build_docs
|
||||||
mkdir -p build_docs && cd build_docs
|
|
||||||
cmake ../docs && cmake --build . --target docs
|
- name: Configure CMake
|
||||||
|
working-directory: build_docs
|
||||||
|
run: cmake ../docs
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
working-directory: build_docs
|
||||||
|
run: cmake --build . --target docs
|
||||||
|
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v5
|
uses: actions/configure-pages@v5
|
||||||
@@ -45,6 +42,19 @@ jobs:
|
|||||||
path: build_docs/html
|
path: build_docs/html
|
||||||
name: docs-develop
|
name: docs-develop
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
needs: build
|
||||||
|
permissions:
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v4
|
uses: actions/deploy-pages@v4
|
||||||
|
|||||||
@@ -11,6 +11,8 @@
|
|||||||
#
|
#
|
||||||
# See https://pre-commit.com for more information
|
# See https://pre-commit.com for more information
|
||||||
# See https://pre-commit.com/hooks.html for more hooks
|
# See https://pre-commit.com/hooks.html for more hooks
|
||||||
|
exclude: ^docs/doxygen-awesome-theme/
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
# `pre-commit sample-config` default hooks
|
# `pre-commit sample-config` default hooks
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
@@ -20,16 +22,13 @@ repos:
|
|||||||
- id: check-executables-have-shebangs
|
- id: check-executables-have-shebangs
|
||||||
- id: check-shebang-scripts-are-executable
|
- id: check-shebang-scripts-are-executable
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
exclude: ^docs/doxygen-awesome-theme/
|
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
exclude: ^docs/doxygen-awesome-theme/
|
|
||||||
|
|
||||||
# Autoformat: YAML, JSON, Markdown, etc.
|
# Autoformat: YAML, JSON, Markdown, etc.
|
||||||
- repo: https://github.com/rbubley/mirrors-prettier
|
- repo: https://github.com/rbubley/mirrors-prettier
|
||||||
rev: 787fb9f542b140ba0b2aced38e6a3e68021647a3 # frozen: v3.5.3
|
rev: 787fb9f542b140ba0b2aced38e6a3e68021647a3 # frozen: v3.5.3
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
exclude: ^docs/doxygen-awesome-theme/
|
|
||||||
|
|
||||||
- repo: https://github.com/igorshubovych/markdownlint-cli
|
- repo: https://github.com/igorshubovych/markdownlint-cli
|
||||||
rev: 586c3ea3f51230da42bab657c6a32e9e66c364f0 # frozen: v0.44.0
|
rev: 586c3ea3f51230da42bab657c6a32e9e66c364f0 # frozen: v0.44.0
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ WARNINGS = ${LINT}
|
|||||||
WARN_NO_PARAMDOC = ${LINT}
|
WARN_NO_PARAMDOC = ${LINT}
|
||||||
WARN_IF_INCOMPLETE_DOC = ${LINT}
|
WARN_IF_INCOMPLETE_DOC = ${LINT}
|
||||||
WARN_IF_UNDOCUMENTED = ${LINT}
|
WARN_IF_UNDOCUMENTED = ${LINT}
|
||||||
|
WARN_AS_ERROR = ${WARN_AS_ERROR}
|
||||||
|
|
||||||
GENERATE_LATEX = NO
|
GENERATE_LATEX = NO
|
||||||
GENERATE_HTML = YES
|
GENERATE_HTML = YES
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ pushd ${DOCDIR} > /dev/null 2>&1
|
|||||||
cat ${ROOT}/docs/Doxyfile | \
|
cat ${ROOT}/docs/Doxyfile | \
|
||||||
sed \
|
sed \
|
||||||
-e "s/\${LINT}/YES/" \
|
-e "s/\${LINT}/YES/" \
|
||||||
|
-e "s/\${WARN_AS_ERROR}/NO/" \
|
||||||
-e "s!\${SOURCE}!${ROOT}!" \
|
-e "s!\${SOURCE}!${ROOT}!" \
|
||||||
-e "s/\${USE_DOT}/NO/" \
|
-e "s/\${USE_DOT}/NO/" \
|
||||||
-e "s/\${EXCLUDES}/impl/" \
|
-e "s/\${EXCLUDES}/impl/" \
|
||||||
|
|||||||
@@ -198,7 +198,6 @@ public:
|
|||||||
*
|
*
|
||||||
* @param sequence Sequence of the ledger to download
|
* @param sequence Sequence of the ledger to download
|
||||||
* @param numMarkers Number of markers to generate for async calls
|
* @param numMarkers Number of markers to generate for async calls
|
||||||
* @param cacheOnly Only insert into cache, not the DB; defaults to false
|
|
||||||
* @return A std::pair of the data and a bool indicating whether the download was successful
|
* @return A std::pair of the data and a bool indicating whether the download was successful
|
||||||
*/
|
*/
|
||||||
std::pair<std::vector<std::string>, bool>
|
std::pair<std::vector<std::string>, bool>
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ public:
|
|||||||
makeJsonParsingError() const;
|
makeJsonParsingError() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @beirf Compose an error into json object from a status.
|
* @brief Compose an error into json object from a status.
|
||||||
*
|
*
|
||||||
* @param error The status to compose into a json object.
|
* @param error The status to compose into a json object.
|
||||||
* @return The composed json object.
|
* @return The composed json object.
|
||||||
|
|||||||
Reference in New Issue
Block a user