Skip to content
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

Fix doc buildsystem #1843

Merged
merged 44 commits into from
Mar 1, 2021
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
6d7f73b
Integrate sphinx doc generation into CMake based build system
jougs Nov 12, 2020
a57b110
Remove usage of Doxygen and Breathe from Sphinx doc generation
jougs Nov 12, 2020
db29180
Don't display license headlines in TOC
jougs Nov 12, 2020
a44c834
Remove obsolete Doxygen group file for models
jougs Nov 12, 2020
ec67fa8
Update and sort gitignore file
jougs Nov 12, 2020
f226900
Remove Doxyfile for Breathe
jougs Nov 12, 2020
6f78e98
Add printout of paths to ease debugging on RtD
jougs Nov 16, 2020
eebec7c
Fix for build_path being "/" on RtD
jougs Nov 16, 2020
48582f5
Fix path comparison
jougs Nov 16, 2020
cc44dd9
Remove duplicate readthedocs.yml, make hidden and update to version 2
jougs Nov 16, 2020
91df6a7
debugging
jougs Nov 16, 2020
4dc17ba
Fix path
jougs Nov 16, 2020
f055143
Change path handling on RtD
jougs Nov 16, 2020
6fd8235
Merge branch 'master' of github.com:nest/nest-simulator into fix_doc_…
jougs Nov 19, 2020
e244a43
Merge branch 'master' into fix_doc_buildsystem
jougs Nov 24, 2020
c419b2c
Add a default for when getting environment variable
jougs Dec 7, 2020
2d31129
Merge branch 'master' of github.com:nest/nest-simulator into fix_doc_…
jougs Dec 7, 2020
cfc6fe7
Merge branch 'fix_doc_buildsystem' of github.com:jougs/nest-simulator…
jougs Dec 7, 2020
ebef1d2
Rename to use standard name
jougs Jan 15, 2021
3f68ef1
Update requirements.txt and make conda use it
jougs Jan 17, 2021
a8de4fb
Simplify and update README
jougs Jan 17, 2021
13f2fbd
Update RtD configuration to use conda
jougs Jan 18, 2021
e15c883
Merge branch 'master' of github.com:nest/nest-simulator into fix_doc_…
jougs Jan 18, 2021
ff67750
Relax requirement on Python version
jougs Jan 18, 2021
ce99f67
Apply suggestions from code review
jougs Jan 22, 2021
b855286
Update doc/README.rst
jougs Jan 28, 2021
f74aa6d
Simplify and fix path handling
jougs Feb 4, 2021
b35d730
Merge branch 'fix_doc_buildsystem' of github.com:jougs/nest-simulator…
jougs Feb 4, 2021
c19a3c1
Merge branch 'master' of github.com:nest/nest-simulator into fix_doc_…
jougs Feb 4, 2021
d3ca105
Add installation of Sphinx-generated user documentation
jougs Feb 5, 2021
be83f12
Update .gitignore
jougs Feb 5, 2021
01f08e0
Move userdoc related files and directories to own directory
jougs Feb 10, 2021
9ae439e
Cleanup directory handling and move things around a bit more
jougs Feb 10, 2021
ee754d1
Merge branch 'master' of github.com:nest/nest-simulator into fix_doc_…
jougs Feb 10, 2021
5c4330e
Move file that was left behind during 01f08e04b2
jougs Feb 11, 2021
d6855c0
Update doc/conf.py
jougs Feb 15, 2021
b0f7354
Replace call to xdg-open by more general instructions
jougs Feb 15, 2021
fd632de
Merge branch 'fix_doc_buildsystem' of github.com:jougs/nest-simulator…
jougs Feb 15, 2021
3a94c83
Move explanatory sentence for make html up
jougs Feb 16, 2021
f0d9ffa
Fix images and includes for Potjans2014 example
jougs Feb 18, 2021
df6e7ff
Merge branch 'fix_doc_buildsystem' of github.com:jougs/nest-simulator…
jougs Feb 18, 2021
df5e4ea
Update documentation workflows and README
jougs Feb 19, 2021
633d495
Update doc/userdoc/documentation_workflow/user_documentation_workflow…
jougs Mar 1, 2021
206e44d
Merge branch 'master' of github.com:nest/nest-simulator into fix_doc_…
jougs Mar 1, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 38 additions & 50 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,67 +1,55 @@
# git ignore patterns

libltdl/

pynest/pynestkernel.cpp
__pycache__/
build/
install/
reports/

*.o
*.lo
# compilation artefacts
pynest/pynestkernel.cxx
*.la
.*
*.lo
*.log
*.o
*.pyc

Makefile
!/doc/Makefile

build/
install/

/juqueen/
/extras/nest-config
/extras/create_release.sh
/libnestutil/config.h
*.so
/librandom/randomtest
/libtool
/nest/nest
/nest/static_modules.h
/pynest/setup.py
/reports/
/sli/sli
/testsuite/do_tests.sh
/doc/doxygen/
/doc/_build/
/doc/xml/
/doc/auto_examples/

*.kdev4

### IPythonNotebook ###
# Temporary data
.ipynb_checkpoints/
TAGS

### tags and cscope
tags
cscope.out

### CMAKE stuff
cmake_install.cmake
CMakeFiles/
_CPack_Packages/
# cmake artefacts
CMakeCache.txt
CPackConfig.cmake
CPackSourceConfig.cmake
CMakeDoxyfile.in
CMakeFiles/
CTestTestfile.cmake
Makefile
cmake_install.cmake
CMakeDoxygenDefaults.cmake

# generated files
doc/set_rcsinfo.cmake
doc/fulldoc.conf
doc/normaldoc.conf
extras/nest-config
extras/nest_vars.sh
libnestutil/config.h
nest/static_modules.h
pynest/setup.py

# installation artefacts
install_manifest.txt

# documentation artefacts
doc/help/
doc/auto_examples/
doc/doctrees/
doc/html/
doc/models/
doc/pynestkernel_mock.py
doc/from_cpp/
doc/microcircuit/
lib/sli/rcsinfo.sli
extras/nest_vars.sh
examples/microcircuit.png
examples/reference_data/

pynest/examples/README
# IDEs / editors / Jupyter
*.kdev4
.ipynb_checkpoints/
TAGS
tags
cscope.out
11 changes: 11 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2

sphinx:
builder: html
configuration: doc/userdoc/conf.py

conda:
environment: doc/environment.yml

build:
image: latest
17 changes: 14 additions & 3 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ endif ()
install( DIRECTORY model_details
DESTINATION ${CMAKE_INSTALL_DOCDIR} )

install( FILES index.html doc_header.txt
DESTINATION ${CMAKE_INSTALL_DOCDIR} )

if ( DOXYGEN_FOUND )
add_custom_target( doc
COMMAND ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_BINARY_DIR}/normaldoc.conf"
Expand All @@ -86,3 +83,17 @@ else ()
COMMAND ${CMAKE_COMMAND} -E echo "Doxygen is not found on your system. Cannot build full documentation."
)
endif ()

set( DOC_BUILD_DIR "${PROJECT_BINARY_DIR}/doc" )

add_custom_target( html
COMMAND [ "${PROJECT_SOURCE_DIR}" != "${PROJECT_BINARY_DIR}" ] && cp -r userdoc "${DOC_BUILD_DIR}" || true
COMMAND PYTHONDONTWRITEBYTECODE=1 sphinx-build -b html -c "${PROJECT_SOURCE_DIR}/doc" "${DOC_BUILD_DIR}/userdoc" "${DOC_BUILD_DIR}/userdoc/html"
COMMAND cp "${DOC_BUILD_DIR}/userdoc/models/*.rst" "${DOC_BUILD_DIR}/userdoc/html/models"
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/doc"
)

install( DIRECTORY "${DOC_BUILD_DIR}/userdoc/html"
DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DOCDIR}"
OPTIONAL
)
Loading