Skip to content

Commit

Permalink
Install documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Nov 19, 2015
1 parent f34afb3 commit b83573e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ add_prefix(doc_deps ../ ${MP_HEADERS})
add_custom_target(doc
COMMAND python ${BUILD_DOCS}
DEPENDS conf.py ${doc_deps} ${amplgsl_docs})

install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/ampl.github.io/
DESTINATION share/doc/mp
PATTERN .* EXCLUDE)

2 comments on commit b83573e

@opoplawski
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is also the amplgsl directory and the *.rst files. Not sure what is most appropriate to install.

@vitaut
Copy link
Contributor Author

@vitaut vitaut commented on b83573e Nov 21, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The .rst files including those in the amplgsl directory are the source for the documentation. Technically they are not required, but Sphinx copies them by default into the _sources directory with extensions changed to .txt. The _sources directory is copied to the installation directory with the rest of the documentation, so there is no need to additionally install .rst files.

Please sign in to comment.