Skip to content

Commit d98d384

Browse files
authored
Documentation pass: building and API docs (#106)
1 parent 630fdee commit d98d384

30 files changed

+1253
-581
lines changed

.readthedocs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
version: 2
22

33
sphinx:
4-
configuration: doc/conf.py
4+
configuration: docs/conf.py
55

66
formats:
7-
- html
7+
- htmlzip
88
- pdf
99

1010
python:
1111
version: 3.6
12+
install:
13+
- requirements: docs/requirements.txt

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,16 @@ modernize the library. See the [migration guide](docs/migration.rst).
1414

1515
### Added
1616

17+
- Up-to-date API documentation generated with [Doxygen], [breathe], and [Sphinx].
18+
- Up-to-date documentation on how to build and develop XCFun.
19+
- Up-to-date documentation on how to use XCFun in your code.
1720
- API functions `xcfun_which_vars` and `xcfun_which_mode`.
1821
- A full example, based on CMake as build system generator, showing how to use
19-
the library from a Fortran host.
22+
the library from a C++ host. Thanks @stigrj!
2023
- A full example, based on CMake as build system generator, showing how to use
2124
the library from a C host.
25+
- A full example, based on CMake as build system generator, showing how to use
26+
the library from a Fortran host.
2227

2328
### Changed
2429

@@ -65,3 +70,6 @@ modernize the library. See the [migration guide](docs/migration.rst).
6570

6671
[GitHub]: https://github.com/dftlibs/xcfun
6772
[pybind11]: https://pybind11.readthedocs.io
73+
[Doxygen]: http://doxygen.nl/
74+
[breathe]: https://breathe.readthedocs.io/en/latest/
75+
[Sphinx]: https://www.sphinx-doc.org/en/master/

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ name = "pypi"
1010
[dev-packages]
1111

1212
Sphinx = "*"
13-
fprettify = "*"
13+
breathe = "*"
1414
numpy = "*"
1515
pytest = "*"
1616
pyyaml = "*"

api/xcfun.h

Lines changed: 263 additions & 58 deletions
Large diffs are not rendered by default.

cmake/custom/test.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ option_with_print(ENABLE_TESTALL "Enable compilation of testall" ON)
33
if(ENABLE_TESTALL)
44
include(CTest)
55
enable_testing()
6-
add_subdirectory(test)
6+
add_subdirectory(tests)
77
endif()

doc/api.rst

Lines changed: 0 additions & 119 deletions
This file was deleted.

doc/conf.py

Lines changed: 0 additions & 158 deletions
This file was deleted.

doc/index.rst

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)