Skip to content

Commit 717e315

Browse files
authored
Merge pull request #9 from mrhatch97/dev
Doxyfile fixes, updated README
2 parents 2481bf5 + f3a19fe commit 717e315

File tree

4 files changed

+16
-9
lines changed

4 files changed

+16
-9
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ before_script:
77
stages:
88
- build
99
- test
10+
- post
1011

1112
build:
1213
stage: build
@@ -27,6 +28,7 @@ test:
2728
- build
2829

2930
pages:
31+
stage: post
3032
script:
3133
- mv build/html/ public/
3234
artifacts:

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# cpp_sgr Usage Guide
2-
[![pipeline status](https://gitlab.com/mrhatch/cpp_sgr/badges/master/pipeline.svg)](https://gitlab.com/mrhatch/cpp_sgr/commits/master)
1+
cpp_sgr
2+
======
3+
[![pipeline status](https://gitlab.com/mrhatch/cpp_sgr/badges/master/pipeline.svg)](https://gitlab.com/mrhatch/cpp_sgr/commits/master) [Doxygen Reference](https://mrhatch.gitlab.io/cpp_sgr)
34

45
cpp_sgr is a library to ease the use of SGRs in programs producing output to
56
a terminal. SGRs (Select Graphic Renditions) are special character sequences
@@ -9,6 +10,10 @@ an interface that abstracts the ugly magic strings specifying SGRs behind
910
convenient mnemonics, and automatically handles clearing SGRs when they
1011
are no longer needed.
1112

13+
SGRs in action:
14+
15+
![SGR Demonstration](docs/img/demo.png)
16+
1217
## Basics
1318

1419
Since this library is designed with ease of use in mind, usage is simple.
@@ -137,10 +142,10 @@ std::cerr << cpp_sgr::red_bg << "Some text" << cpp_sgr::reset << "\n";
137142

138143
## Installation
139144

140-
To install this library for use in a project, simply copy `include/sgr.hpp` to
141-
the system include directory or a project-specific include directory.
142-
Include `sgr.hpp` to make it available.
145+
To install this library for use in a project, simply copy `include/sgr.hpp` to a
146+
project-specific include directory, or use CMake to install the library to the
147+
system include directory and use find_package to import it into a CMake project.
148+
Include `cpp_sgr/sgr.hpp` to make it available.
143149

144-
A demonstration program has been provided, along with a Doxygen configuration
145-
file. If desired, the accompanying CMake configuration file can be used
146-
to build the demo file and Doxygen documentation.
150+
A demonstration program has been provided, built as `demo`, which showcases the
151+
functionality of the library.

docs/Doxyfile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "@CMAKE_PROJECT_NAME@"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = @VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@
41+
PROJECT_NUMBER = @PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

docs/img/demo.png

36.4 KB
Loading

0 commit comments

Comments
 (0)