forked from p4lang/p4c
-
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.
Docs : Configure Doxygen and GitHub pages deploy Action (p4lang#4702)
* Feat: Migrate from PNG to SVG graphs * Move: P4 logo to assets directory * Branding: Add P4 favicon to generated Docs * Docs : Disable full path names * Feat : GitHub Actions for building and deploying Documentaion Overview of Action - Set up workflow to trigger on push to main branch - Install Doxygen and Graphviz - Generate Doxygen documentation - Deploy generated documentation to GitHub Pages
- Loading branch information
1 parent
68c0ddd
commit 7f98dad
Showing
6 changed files
with
57 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Build Doxygen and deploy to GitHub Pages | ||
permissions: | ||
actions: read | ||
contents: write | ||
pages: write | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
concurrency: ci-${{github. ref}} | ||
steps: | ||
- name : Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Doxygen | ||
run: sudo apt-get install doxygen graphviz -y | ||
shell: bash | ||
|
||
- name: Generate Doxygen Documentation | ||
run: | | ||
cd docs/doxygen | ||
doxygen doxygen.cfg | ||
shell: bash | ||
|
||
- name: Create .nojekyll | ||
run: | | ||
cd docs/doxygen/build | ||
touch html/.nojekyll | ||
shell: bash | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: gh-pages | ||
folder: docs/doxygen/build/html |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
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 @@ | ||
%%BEGIN COMPACT_LATEX |
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