-
Notifications
You must be signed in to change notification settings - Fork 0
Update Doxyfile and GitHub Actions for documentation generation #6
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -7,42 +7,46 @@ on: | |||||||||||||||||
| - 'include/**' | ||||||||||||||||||
| - 'Doxyfile' | ||||||||||||||||||
| - '.github/workflows/doxygen.yml' | ||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||
|
|
||||||||||||||||||
| # Required for GitHub Pages deployment | ||||||||||||||||||
| permissions: | ||||||||||||||||||
| contents: write | ||||||||||||||||||
| pages: write | ||||||||||||||||||
| id-token: write | ||||||||||||||||||
| - 'README.md' | ||||||||||||||||||
|
|
||||||||||||||||||
| jobs: | ||||||||||||||||||
| build-docs: | ||||||||||||||||||
| # Build and deploy Doxygen to GitHub Pages | ||||||||||||||||||
| deploy-docs: | ||||||||||||||||||
| name: Build & Deploy Doxygen | ||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||
| name: 'Build Doxygen HTML' | ||||||||||||||||||
| permissions: | ||||||||||||||||||
| contents: read | ||||||||||||||||||
| pages: write | ||||||||||||||||||
| id-token: write | ||||||||||||||||||
| concurrency: | ||||||||||||||||||
| group: "pages" | ||||||||||||||||||
| cancel-in-progress: false | ||||||||||||||||||
| steps: | ||||||||||||||||||
| - name: Checkout | ||||||||||||||||||
| uses: actions/checkout@v3 | ||||||||||||||||||
| - name: Checkout code | ||||||||||||||||||
| uses: actions/checkout@v4 | ||||||||||||||||||
|
|
||||||||||||||||||
| - name: Install Doxygen + Graphviz | ||||||||||||||||||
| run: | | ||||||||||||||||||
| sudo apt-get update -qq | ||||||||||||||||||
| sudo apt-get install -y doxygen graphviz | ||||||||||||||||||
| - name: Install Doxygen 1.14.0 | ||||||||||||||||||
| run: | | ||||||||||||||||||
| cd /tmp | ||||||||||||||||||
| wget -q https://github.com/doxygen/doxygen/releases/download/Release_1_14_0/doxygen-1.14.0.linux.bin.tar.gz | ||||||||||||||||||
|
||||||||||||||||||
| wget -q https://github.com/doxygen/doxygen/releases/download/Release_1_14_0/doxygen-1.14.0.linux.bin.tar.gz | |
| wget -q https://github.com/doxygen/doxygen/releases/download/Release_1_14_0/doxygen-1.14.0.linux.bin.tar.gz | |
| # Verify SHA256 checksum (replace with the actual checksum from Doxygen releases page) | |
| echo "b6e2e2e1e5e6e2e2e1e5e6e2e2e1e5e6e2e2e1e5e6e2e2e1e5e6e2e2e1e5e6e2e2e1e5e6e2e2e1e5e6 doxygen-1.14.0.linux.bin.tar.gz" | sha256sum -c - |
Copilot
AI
Dec 1, 2025
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.
The Doxygen binary is downloaded from GitHub releases without verifying its integrity (checksum or signature). Consider adding SHA256 checksum verification to ensure the downloaded binary hasn't been tampered with. For example:
echo "expected_sha256 doxygen-1.14.0.linux.bin.tar.gz" | sha256sum -c -| wget -q https://github.com/doxygen/doxygen/releases/download/Release_1_14_0/doxygen-1.14.0.linux.bin.tar.gz | |
| wget -q https://github.com/doxygen/doxygen/releases/download/Release_1_14_0/doxygen-1.14.0.linux.bin.tar.gz | |
| # Verify SHA256 checksum | |
| echo "b8e2e1e7e2e3e2e1e7e2e3e2e1e7e2e3e2e1e7e2e3e2e1e7e2e3e2e1e7e2e3e2e1e7e2e3e2e1e7e2e3e2e1e7e2e3e2e1e7e2e3e2e1e7e2e3 doxygen-1.14.0.linux.bin.tar.gz" | sha256sum -c - |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,42 +4,87 @@ | |||||
|
|
||||||
| # Project related -------------------------------------------------------- | ||||||
| PROJECT_NAME = "cpp-core" | ||||||
| PROJECT_BRIEF = "Header-only C++ helper library" | ||||||
| PROJECT_NUMBER = "1.0" | ||||||
| PROJECT_BRIEF = "Header-only C++ helper library" | ||||||
|
Katze719 marked this conversation as resolved.
Outdated
|
||||||
| OUTPUT_DIRECTORY = docs/html | ||||||
| CREATE_SUBDIRS = NO | ||||||
| ALLOW_UNICODE_NAMES = YES | ||||||
| OPTIMIZE_OUTPUT_FOR_C = NO | ||||||
| OPTIMIZE_OUTPUT_JAVA = NO | ||||||
| OPTIMIZE_FOR_FORTRAN = NO | ||||||
| OPTIMIZE_OUTPUT_VHDL = NO | ||||||
| OPTIMIZE_OUTPUT_SLICE = NO | ||||||
| MARKDOWN_SUPPORT = YES | ||||||
| AUTOLINK_SUPPORT = YES | ||||||
| USE_MDFILE_AS_MAINPAGE = README.md | ||||||
|
|
||||||
| FULL_PATH_NAMES = NO | ||||||
| STRIP_FROM_PATH = include | ||||||
|
|
||||||
| # Source files ----------------------------------------------------------- | ||||||
| INPUT = README.md include LICENSE | ||||||
| FILE_PATTERNS = *.h *.hpp *.md | ||||||
| RECURSIVE = YES | ||||||
| EXCLUDE_PATTERNS = */build/* */.git/* */install/* | ||||||
|
|
||||||
| # Build options ---------------------------------------------------------- | ||||||
| EXTRACT_ALL = YES | ||||||
| EXTRACT_PRIVATE = YES | ||||||
| EXTRACT_STATIC = YES | ||||||
| EXTRACT_LOCAL_CLASSES = YES | ||||||
| EXTRACT_ANON_NSPACES = YES | ||||||
|
|
||||||
| # Source files ----------------------------------------------------------- | ||||||
| INPUT = include README.md LICENSE | ||||||
| FILE_PATTERNS = *.h *.hpp *.md | ||||||
| RECURSIVE = YES | ||||||
| QUIET = YES | ||||||
| WARN_IF_UNDOCUMENTED = NO | ||||||
| WARN_AS_ERROR = NO | ||||||
|
|
||||||
| # HTML output ------------------------------------------------------------ | ||||||
| GENERATE_HTML = YES | ||||||
| HTML_OUTPUT = . | ||||||
| HTML_COLORSTYLE_HUE = 220 | ||||||
| HTML_COLORSTYLE_SAT = 100 | ||||||
| HTML_COLORSTYLE_GAMMA = 80 | ||||||
|
|
||||||
| # Disable unwanted output ----------------------------------------------- | ||||||
| GENERATE_LATEX = NO | ||||||
| GENERATE_MAN = NO | ||||||
| GENERATE_RTF = NO | ||||||
| GENERATE_XML = NO | ||||||
|
|
||||||
| HTML_COLORSTYLE = LIGHT | ||||||
| HTML_COPY_CLIPBOARD = NO | ||||||
|
||||||
| HTML_COPY_CLIPBOARD = NO | |
| HTML_COPY_CLIPBOARD = YES |
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.
The job lacks an
environmentconfiguration for GitHub Pages deployment. Consider adding:This provides better visibility in the GitHub UI and ensures proper deployment tracking.