mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-21 14:50:26 -08:00
Compare commits
11 Commits
tooomm-rea
...
tooomm_dox
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d803387b7 | ||
|
|
5905787d3e | ||
|
|
50ba36e2d5 | ||
|
|
fd67ee6d1b | ||
|
|
e41059fa1b | ||
|
|
5df911938b | ||
|
|
057c7f0d3f | ||
|
|
07339efa3c | ||
|
|
2012bfd04b | ||
|
|
27f177fe08 | ||
|
|
5d61cfb133 |
2
.github/CONTRIBUTING.md
vendored
2
.github/CONTRIBUTING.md
vendored
@@ -1,4 +1,4 @@
|
|||||||
<!--! @page contributing Contributing -->
|
@page contributing Contributing
|
||||||
|
|
||||||
[Introduction](#contributing-to-cockatrice) | [Code Style Guide](
|
[Introduction](#contributing-to-cockatrice) | [Code Style Guide](
|
||||||
#code-style-guide) | [Translations](#translations) | [Release Management](
|
#code-style-guide) | [Translations](#translations) | [Release Management](
|
||||||
|
|||||||
28
.github/workflows/documentation-build.yml
vendored
28
.github/workflows/documentation-build.yml
vendored
@@ -6,32 +6,50 @@ on:
|
|||||||
- '*' # Only re-generate docs when a new tagged version is pushed
|
- '*' # Only re-generate docs when a new tagged version is pushed
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
|
- '**.h'
|
||||||
|
- '/doc/doxygen/**'
|
||||||
- '.github/workflows/documentation-build.yml'
|
- '.github/workflows/documentation-build.yml'
|
||||||
- 'Doxyfile'
|
- 'Doxyfile'
|
||||||
- 'doxygen_style.css'
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
COCKATRICE_REF: ${{ github.ref_name }} # Tag name if the commit is tagged, otherwise branch name
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docs:
|
docs:
|
||||||
name: Doxygen
|
name: Doxygen
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Install Doxygen and Graphviz
|
- name: Install Doxygen and Graphviz
|
||||||
|
shell: bash
|
||||||
run: sudo apt-get install -y doxygen graphviz
|
run: sudo apt-get install -y doxygen graphviz
|
||||||
|
|
||||||
- name: Generate Documentation
|
- name: Generate Documentation
|
||||||
|
shell: bash
|
||||||
run: doxygen Doxyfile
|
run: doxygen Doxyfile
|
||||||
|
|
||||||
- name: Deploy to cockatrice.github.io
|
- name: Upload Documentation
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Cockatrice_Docs
|
||||||
|
path: ./docs/html # Main output folder + subfolder defined in Doxygen config
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
|
- name: Deploy to cockatrice.github.io/docs
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: peaceiris/actions-gh-pages@v4
|
uses: peaceiris/actions-gh-pages@v4
|
||||||
with:
|
with:
|
||||||
deploy_key: ${{ secrets.DOCS_DEPLOY_KEY }}
|
deploy_key: ${{ secrets.DOCS_DEPLOY_KEY }}
|
||||||
external_repository: Cockatrice/cockatrice.github.io
|
external_repository: Cockatrice/cockatrice.github.io
|
||||||
publish_branch: master
|
publish_branch: master
|
||||||
publish_dir: ./docs/html
|
publish_dir: ./docs/html # Main output folder + subfolder defined in Doxygen config
|
||||||
destination_dir: docs # Docs will live under https://cockatrice.github.io/docs/
|
destination_dir: docs # Subfolder of the GitHub Pages URL where the docs live
|
||||||
|
|
||||||
|
- name: Link to Documentation Page
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
shell: bash
|
||||||
|
run: echo "::notice title=New documentation published ::Shortly available at https://cockatrice.github.io/docs/"
|
||||||
|
|||||||
13
Doxyfile
13
Doxyfile
@@ -1,4 +1,5 @@
|
|||||||
# Doxyfile 1.14.0
|
# Doxyfile 1.14.0
|
||||||
|
# Docs: https://www.doxygen.nl/manual
|
||||||
|
|
||||||
# This file describes the settings to be used by the documentation system
|
# This file describes the settings to be used by the documentation system
|
||||||
# Doxygen (www.doxygen.org) for a project.
|
# Doxygen (www.doxygen.org) for a project.
|
||||||
@@ -48,13 +49,13 @@ PROJECT_NAME = "Cockatrice"
|
|||||||
# could be handy for archiving the generated documentation or if some version
|
# could be handy for archiving the generated documentation or if some version
|
||||||
# control system is used.
|
# control system is used.
|
||||||
|
|
||||||
PROJECT_NUMBER = 2.11
|
PROJECT_NUMBER = $(COCKATRICE_REF)
|
||||||
|
|
||||||
# Using the PROJECT_BRIEF tag one can provide an optional one line description
|
# Using the PROJECT_BRIEF tag one can provide an optional one line description
|
||||||
# for a project that appears at the top of each page and should give viewers a
|
# for a project that appears at the top of each page and should give viewers a
|
||||||
# quick idea about the purpose of the project. Keep the description short.
|
# quick idea about the purpose of the project. Keep the description short.
|
||||||
|
|
||||||
PROJECT_BRIEF =
|
PROJECT_BRIEF = A cross-platform virtual tabletop for multiplayer card games
|
||||||
|
|
||||||
# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
|
# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
|
||||||
# in the documentation. The maximum height of the logo should not exceed 55
|
# in the documentation. The maximum height of the logo should not exceed 55
|
||||||
@@ -839,7 +840,7 @@ FILE_VERSION_FILTER =
|
|||||||
# DoxygenLayout.xml, Doxygen will parse it automatically even if the LAYOUT_FILE
|
# DoxygenLayout.xml, Doxygen will parse it automatically even if the LAYOUT_FILE
|
||||||
# tag is left empty.
|
# tag is left empty.
|
||||||
|
|
||||||
LAYOUT_FILE = DoxygenLayout.xml
|
LAYOUT_FILE = doc/doxygen/DoxygenLayout.xml
|
||||||
|
|
||||||
# The CITE_BIB_FILES tag can be used to specify one or more bib files containing
|
# The CITE_BIB_FILES tag can be used to specify one or more bib files containing
|
||||||
# the reference definitions. This must be a list of .bib files. The .bib
|
# the reference definitions. This must be a list of .bib files. The .bib
|
||||||
@@ -991,7 +992,7 @@ WARN_LOGFILE =
|
|||||||
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
|
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
|
||||||
# Note: If this tag is empty the current directory is searched.
|
# Note: If this tag is empty the current directory is searched.
|
||||||
|
|
||||||
INPUT = cockatrice common doc/doxygen-groups
|
INPUT = cockatrice common doc/doxygen/extra-pages doc/doxygen/groups .github/CONTRIBUTING.md
|
||||||
|
|
||||||
# This tag can be used to specify the character encoding of the source files
|
# This tag can be used to specify the character encoding of the source files
|
||||||
# that Doxygen parses. Internally Doxygen uses the UTF-8 encoding. Doxygen uses
|
# that Doxygen parses. Internally Doxygen uses the UTF-8 encoding. Doxygen uses
|
||||||
@@ -1438,7 +1439,7 @@ HTML_EXTRA_FILES = doc/doxygen/js/graph_toggle.js
|
|||||||
# The default value is: AUTO_LIGHT.
|
# The default value is: AUTO_LIGHT.
|
||||||
# This tag requires that the tag GENERATE_HTML is set to YES.
|
# This tag requires that the tag GENERATE_HTML is set to YES.
|
||||||
|
|
||||||
HTML_COLORSTYLE = DARK
|
HTML_COLORSTYLE = AUTO_DARK
|
||||||
|
|
||||||
# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen
|
# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen
|
||||||
# will adjust the colors in the style sheet and background images according to
|
# will adjust the colors in the style sheet and background images according to
|
||||||
@@ -2021,7 +2022,7 @@ EXTRA_SEARCH_MAPPINGS =
|
|||||||
# If the GENERATE_LATEX tag is set to YES, Doxygen will generate LaTeX output.
|
# If the GENERATE_LATEX tag is set to YES, Doxygen will generate LaTeX output.
|
||||||
# The default value is: YES.
|
# The default value is: YES.
|
||||||
|
|
||||||
GENERATE_LATEX = YES
|
GENERATE_LATEX = NO
|
||||||
|
|
||||||
# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a
|
# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a
|
||||||
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
|
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
@mainpage Cockatrice Documentation
|
|
||||||
|
|
||||||
# Welcome
|
|
||||||
|
|
||||||
This is the **main landing page** of the Cockatrice documentation.
|
|
||||||
|
|
||||||
- Go to the @subpage user_reference page
|
|
||||||
- Or check out the @subpage developer_reference
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
@page user_reference User Reference
|
|
||||||
|
|
||||||
@subpage search_syntax_help
|
|
||||||
@subpage deck_search_syntax_help
|
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
@page developer_reference Developer Reference
|
@page developer_reference Developer Reference
|
||||||
|
|
||||||
- [Contributing](@subpage contributing)
|
- @subpage contributing
|
||||||
12
doc/doxygen/extra-pages/index.md
Normal file
12
doc/doxygen/extra-pages/index.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
@mainpage Cockatrice Documentation
|
||||||
|
|
||||||
|
# Welcome
|
||||||
|
|
||||||
|
This is the **main landing page** of the Cockatrice documentation.
|
||||||
|
|
||||||
|
- Go to the @subpage user_reference page
|
||||||
|
- Or check out the @subpage developer_reference
|
||||||
|
|
||||||
|
- If you want to contribute code or translations, read our <a href="https://github.com/Cockatrice/Cockatrice?tab=contributing-ov-file#readme">CONTRIBUTING.md</a> file
|
||||||
|
- <a href="https://github.com/Cockatrice/Cockatrice/wiki">Cockatrice Wiki</a>
|
||||||
|
- <a href="https://cockatrice.github.io/">Cockatrice Webpage</a>
|
||||||
4
doc/doxygen/extra-pages/user_documentation/index.md
Normal file
4
doc/doxygen/extra-pages/user_documentation/index.md
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
@page user_reference User Reference
|
||||||
|
|
||||||
|
- @subpage search_syntax_help
|
||||||
|
- @subpage deck_search_syntax_help
|
||||||
Reference in New Issue
Block a user