IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 29a8b758 authored by ralfulrich's avatar ralfulrich Committed by Ralf Ulrich
Browse files

read the docs

parent fe56f7b6
No related branches found
No related tags found
1 merge request!334readthedocs and better error messages
import sys import sys
import subprocess, os import subprocess, os
def configureDoxyfile(input_dir, output_dir):
with open('Doxyfile.in', 'r') as file :
filedata = file.read()
filedata = filedata.replace('@PROJECT_SOURCE_DIR@', input_dir)
filedata = filedata.replace('@CMAKE_CURRENT_BINARY_DIR@', output_dir)
filedata = filedata.replace('@CMAKE_BINARY_DIR@', output_dir)
with open('Doxyfile', 'w') as file:
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 = '../corsika'
output_dir = 'build'
configureDoxyfile(input_dir, output_dir)
subprocess.call('mkdir -p build/corsika/framework/core; cd build/corsika/framework/core && ../../../../../corsika/src/framework/core/pdxml_reader.py ../../../../../corsika/src/framework/core/ParticleData.xml ../../../../../corsika/src/framework/core/NuclearData.xml ../../../../../corsika/src/framework/core/ParticleClassNames.xml', shell=True)
subprocess.call('mkdir -p build/corsika/media; cd build/corsika/media && ../../../../../corsika/src/media/readProperties.py ../../../../../corsika/src/media/properties8.dat', shell=True)
subprocess.call('doxygen', shell=True)
subprocess.call('cd ../doxygen; doxygen', shell=True) subprocess.call('cd ../doxygen; doxygen', shell=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment