Commit graph

12 commits

Author SHA1 Message Date
Thomas Lauf
3008e458e9 Update project to C++17
- Bump CMake to minimum version 3.8
- Set C++ standard to 17
- Remove CMAKE_LEGACY_CYGWIN_WIN32 compatibility mode
- Remove C++11 stuff
- Update documentation

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-06-17 08:41:07 +02:00
Thomas Lauf
b189ccb020 Replace roff man pages with asciidoctor
This replaces the generation of man pages on project setup
by a on-demand generation via asciidoctor.
An exception are the man pages for the commands `day`, `month`, and `week`
which are simply redirects to the man page `timew-chart.1`. Those are now
static files in the Timewarrior repository.

A CMake find module to detect asciidoctor was added.
If asciidoctor is found, the targets `doc`, `man1`, and `man7` are created.
Those targets are also added to the default build target.

If asciidoctor is not available, the target `doc` is available, but it only
emits a message to install asciidoctor first.

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2021-02-21 20:58:30 +01:00
Thomas Lauf
65ef38658b Increase minimal CMake version
Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.
According to our test images all supported distributions have CMake > 3

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2021-02-12 10:50:39 +01:00
Thomas Lauf
f7a3e26d8e Move section 7 files to directory man7
- Amends #262

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-12-27 17:22:00 +01:00
Shaun Ruffell
f0bda68b02 Allow help.t test to find manpages without installing them. 2019-11-19 19:45:18 +01:00
Thomas Lauf
661e9f658e Consolidate chart documentation into timew-chart.1 2019-02-21 23:23:22 +01:00
Thomas Lauf
e53e92f448 Update man page creation
- add new man pages
- register new installation directory for section 7

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-02-21 23:23:22 +01:00
Kent R. Spillner
5bb6a0ebff Build: Out of source build improvements for holidays, themes
- Using a separate build directory currently fails during make install
  because none of the files under doc/holidays or doc/themes are being
  by cmake into the build dir.  Add CMakeLists.txt files for both
  doc/holidays and doc/themes, and add the corresponding add_subdirectory
  directives to doc/CMakeLists.txt, to ensure these files are always
  copied into the build directory and installed correctly.
2016-06-28 17:45:03 -04:00
Gordon Ball
5e45f0a513 Build: timew 0.9.5~alpha install bug
- Thanks to Gordon Ball.
2016-06-22 19:51:03 -04:00
Paul Beckingham
902398238b Build: man page, themes are holidays now installed 2016-06-18 12:32:51 -04:00
Paul Beckingham
e7fb0d45c6 Doc: Removed config man page - not relevant 2016-03-17 16:29:46 -04:00
Paul Beckingham
f550e8a1a7 Docs: Added bare-bones man pages 2016-01-18 23:42:37 -05:00