Skip to content

Commit 3457d43

Browse files
authored
Fixing GitHub Pages publishing (motis-project#26)
1 parent 609c85e commit 3457d43

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

.github/workflows/unix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ jobs:
165165
cd docs
166166
doxygen
167167
sphinx-build -M html . _build
168-
mv _build ../public
168+
mv _build/html ../public
169169
170170
- name: Deploy documentation onto GitHub Pages 🚀
171171
if: github.ref == 'refs/heads/master'

docs/README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1-
Documentation was originally setup following this tutorial:
1+
Documentation was originally setup in PR [#25](https://github.com/motis-project/utl/pull/25) following this tutorial:
22
[Clear, Functional C++ Documentation with Sphinx + Breathe + Doxygen + CMake](https://devblogs.microsoft.com/cppblog/clear-functional-c-documentation-with-sphinx-breathe-doxygen-cmake/)
33

4+
The documentation is then published to GitHub Pages: <https://motis-project.github.io/utl/>
5+
6+
[breathe](https://breathe.readthedocs.io) is used to insert Doxygen doc snippets
7+
into the Sphinx-generated documentation.
8+
9+
List of supported directives: <https://breathe.readthedocs.io/en/latest/directives.html#directives>
10+
11+
## Installing the necessary tools
12+
13+
apt install doxygen
14+
pip install -r docs/requirements.txt
15+
416
## Generating Doxygen documentation
517
With CMake, from the root directory:
618

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ error
3535
Advanced usage
3636
^^^^^^^^^^^^^^
3737

38-
By default, ``logF()`` inserts the current filename & linenumber in the log line.
38+
By default, ``logF()`` inserts the current filename & line number in the log line.
3939
However, you can use ``log()`` to specify your own **context** ::
4040

4141
log(info, "http.get.resource", "Details");

include/utl/logging.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ void log(log_level const level, char const* ctx,
7474
} // namespace utl
7575

7676
// clang-format off
77-
#define _CLANG_C_COMPILER clang-cl
77+
#define _IS_MSVC _MSC_VER && CMAKE_C_COMPILER != clang-cl
7878
// clang-format on
7979

8080
/**
8181
* Shorthand to invoke utl::log without specifying the namespace
8282
*/
83-
#if _MSC_VER && CMAKE_C_COMPILER != _CLANG_C_COMPILER
83+
#if _IS_MSVC
8484
#define log(level, ctx, fmt_str, ...) \
8585
utl::log(utl::log_level::##level, ctx, fmt_str, __VA_ARGS__)
8686
#else
@@ -91,7 +91,7 @@ void log(log_level const level, char const* ctx,
9191
/**
9292
* Invoke utl::log using the current C++ filename & line number as ctx
9393
*/
94-
#if _MSC_VER && CMAKE_C_COMPILER != _CLANG_C_COMPILER
94+
#if _IS_MSVC
9595
#define logF(level, fmt_str, ...) \
9696
log(level, FILE_AND_LINE_SHORT, fmt_str, __VA_ARGS__)
9797
#else

0 commit comments

Comments
 (0)