IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pranav Sampathkumar
corsika
Commits
ead07eae
"git@gitlab.iap.kit.edu:AirShowerPhysics/corsika.git" did not exist on "6ee3c4c95c92dc490a59db4642dd3ee44b7e3160"
Commit
ead07eae
authored
3 years ago
by
Antonio Augusto Alves Junior
Committed by
Ralf Ulrich
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
documentation building
parent
9b22e80d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
documentation/api.rst
+11
-9
11 additions, 9 deletions
documentation/api.rst
documentation/conf.py
+33
-25
33 additions, 25 deletions
documentation/conf.py
with
44 additions
and
34 deletions
documentation/api.rst
+
11
−
9
View file @
ead07eae
Full API
Reference Documentation
========
========
===============
Consider using Doxygen directly for a full API reference....
Find the latest full reference manual at `Doxygen`_, or the components on:
..
* `Classes`_
.. doxygenindex::
* `Functions`_
:project: CORSIKA8
* `Files`_
:path: c8
:outline:
.. _Doxygen: doxygen/html/index.html
:no-link:
.. _Classes: doxygen/html/classes.html
.. _Functions: doxygen/html/functions.html
.. _Files: doxygen/html/files.html
This diff is collapsed.
Click to expand it.
documentation/conf.py
+
33
−
25
View file @
ead07eae
import
sys
import
sys
import
subprocess
,
os
import
subprocess
,
os
def
configureDoxyfile
(
input_dir
,
output_
dir
):
def
configureDoxyfile
(
template_file
,
output_
file
):
with
open
(
'
Doxyfile.in
'
,
'
r
'
)
as
file
:
with
open
(
template_file
,
'
r
'
)
as
file
:
filedata
=
file
.
read
()
filedata
=
file
.
read
()
filedata
=
filedata
.
replace
(
'
@PROJECT_SOURCE_DIR@
'
,
input_dir
)
filedata
=
filedata
.
replace
(
'
@PROJECT_SOURCE_DIR@
'
,
input_dir
)
filedata
=
filedata
.
replace
(
'
@CMAKE_CURRENT_BINARY_DIR@
'
,
output_dir
)
filedata
=
filedata
.
replace
(
'
@CMAKE_CURRENT_BINARY_DIR@
'
,
output_dir
)
filedata
=
filedata
.
replace
(
'
@CMAKE_BINARY_DIR@
'
,
output_dir
)
filedata
=
filedata
.
replace
(
'
@CMAKE_BINARY_DIR@
'
,
output_dir
)
with
open
(
'
Doxy
file
'
,
'
w
'
)
as
file
:
with
open
(
output_
file
,
'
w
'
)
as
file
:
file
.
write
(
filedata
)
file
.
write
(
filedata
)
read_the_docs_build
=
os
.
environ
.
get
(
'
READTHEDOCS
'
,
None
)
==
'
True
'
read_the_docs_build
=
os
.
environ
.
get
(
'
READTHEDOCS
'
,
None
)
==
'
True
'
breathe_projects
=
{}
if
read_the_docs_build
:
if
read_the_docs_build
:
input_dir
=
'
../
'
configureDoxyfile
(
Doxyfile
.
in
,
Doxyfile
)
output_dir
=
'
build
'
# build doxygen documentation
configureDoxyfile
(
input_dir
,
output_dir
)
subprocess
.
call
(
'
mkdir -p _build/workdir/doxygen; doxygen Doxyfile
'
,
shell
=
True
)
html_extra_path
=
[
'
_build/workdir/
'
]
subprocess
.
call
(
'
mkdir -p build/corsika/framework/core; cd build/corsika/framework/core && ../../../../../src/framework/core/pdxml_reader.py ../../../../../src/framework/core/ParticleData.xml ../../../../../src/framework/core/NuclearData.xml ../../../../../src/framework/core/ParticleClassNames.xml
'
,
shell
=
True
)
subprocess
.
call
(
'
mkdir -p build/corsika/media; cd build/corsika/media && ../../../../src/media/readProperties.py ../../../../src/media/properties8.dat
'
,
shell
=
True
)
subprocess
.
call
(
'
doxygen
'
,
shell
=
True
)
breathe_projects
[
'
CORSIKA8
'
]
=
output_dir
+
'
/xml
'
# -- Project information -----------------------------------------------------
# -- Project information -----------------------------------------------------
project
=
u
'
CORSIKA8
'
project
=
u
'
CORSIKA8
'
copyright
=
u
'
2021, CORSIKA 8 Collaboration
'
copyright
=
u
'
2021, CORSIKA 8 Collaboration
'
author
=
u
'
CORSIKA 8 Collaboration
'
author
=
u
'
CORSIKA 8 Collaboration
'
# The short X.Y version
# The short X.Y version
version
=
u
'
0.0.0
'
version
=
u
'
0.0.0
'
...
@@ -43,7 +38,6 @@ release = u'prototype-0.1.0'
...
@@ -43,7 +38,6 @@ release = u'prototype-0.1.0'
extensions
=
[
extensions
=
[
'
sphinx.ext.todo
'
,
'
sphinx.ext.todo
'
,
'
breathe
'
,
'
sphinx.ext.mathjax
'
,
'
sphinx.ext.mathjax
'
,
'
sphinx.ext.autodoc
'
,
'
sphinx.ext.autodoc
'
,
'
sphinx.ext.extlinks
'
,
'
sphinx.ext.extlinks
'
,
...
@@ -52,12 +46,15 @@ extensions = [
...
@@ -52,12 +46,15 @@ extensions = [
'
recommonmark
'
'
recommonmark
'
]
]
breathe_default_project
=
"
CORSIKA8
"
# Add any paths that contain templates here, relative to this directory.
# Add any paths that contain templates here, relative to this directory.
templates_path
=
[
'
_templates
'
]
templates_path
=
[
'
_templates
'
]
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns
=
[
'
_build
'
,
'
Thumbs.db
'
,
'
.DS_Store
'
]
# The suffix(es) of source filenames.
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
# You can specify multiple suffix as a list of string:
#
#
...
@@ -74,11 +71,6 @@ master_doc = 'index'
...
@@ -74,11 +71,6 @@ master_doc = 'index'
# Usually you set "language" from the command line for these cases.
# Usually you set "language" from the command line for these cases.
language
=
None
language
=
None
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path .
exclude_patterns
=
[]
# The name of the Pygments (syntax highlighting) style to use.
# The name of the Pygments (syntax highlighting) style to use.
pygments_style
=
'
sphinx
'
pygments_style
=
'
sphinx
'
...
@@ -86,10 +78,26 @@ pygments_style = 'sphinx'
...
@@ -86,10 +78,26 @@ pygments_style = 'sphinx'
# -- Options for HTML output -------------------------------------------------
# -- Options for HTML output -------------------------------------------------
html_theme
=
'
sphinx_rtd_theme
'
html_theme
=
'
sphinx_rtd_theme
'
# html_theme_options = {}
# html_static_path = []
html_theme_options
=
{
# html_sidebars = {}
'
analytics_id
'
:
''
,
# Provided by Google in your dashboard
'
analytics_anonymize_ip
'
:
False
,
'
logo_only
'
:
False
,
'
display_version
'
:
True
,
'
prev_next_buttons_location
'
:
'
bottom
'
,
'
style_external_links
'
:
False
,
# Toc options
'
collapse_navigation
'
:
True
,
'
sticky_navigation
'
:
True
,
'
navigation_depth
'
:
4
,
'
includehidden
'
:
True
,
'
titles_only
'
:
False
}
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path
=
[
'
_static
'
]
htmlhelp_basename
=
'
C8doc
'
htmlhelp_basename
=
'
C8doc
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment