GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
How to build and document inside this documentation

On this page, we explain how you can compile this documentation on your own and give some basics and hints on how to document in markdown pages as well as inside your code (especially when commenting longer sections).

Building this Documentation

Requirements

  • Doxygen 1.18.0 on PATH, or an executable selected through DOXYGEN.
  • Python 3.8 or newer with pandas and nbconvert<8.
  • A working GCG binary from the same source version, for parameters and menus.
  • Network access on the first build to cache MathJax and SCIP API references.

The docker/gcg-doc CI image supplies these tools. PHP and LaTeX are not needed.

Instructions

After configuring a CMake build, run:

cmake --build build --target gcg_doc -j 4

Makefile builds can continue to use make doc. The wrapper doc/builddoc.sh calls doc/build.py; both build systems pass the binary directory through BINDIR. Open build/doc-current/index.html, or serve it with python3 -m http.server --directory build/doc-current.

Each build replaces this local output with one complete site. Untagged commits use doc-development; a matching version tag produces doc-VERSION. Source files are unchanged. doc/.cache holds reusable downloads.

Publishing

CI stores the site and job metadata as a GitLab artifact. The publisher in docker/gcg-doc downloads successful jobs: docu updates /doc-preview/, master updates /doc-master/, and an approved manual tag job updates the main site while retaining older versions. Local builds do not deploy anything.

Content

Add @subpage links to the parent page when adding pages. FAQ entries live in doc/resources/misc/faq/faqtext.txt and are rendered by the Python builder.

Documenting in this Documentation

How to add new pages

Folder structure

You can move and create folders and pages (see below) as you like inside the folder resources, The builder reads these folders recursively. Note that the pages will not automatically be subpages of the containing folder's main page. To make this the case, you have to add a tag \@subpage to the containing page.

.md files

The first line has to be of the form

# your title {#identifier}

in the right folder.
Use a unique page identifier and reference it with @ref or @subpage.

Some of the main features of .md files are explained in the following.

HTML compatibility

The Markdown format is based on HTML, with more restricted, but better readable functionalities. Thus, most HTML tags (such as iframes, anchors, embeds, etc.) can be used in the .md file. If you intend on only adding HTML code, use the tag \htmlinclude HTMLFILE.

Referencing

You can reference other pages using @ref.

Adding Pictures

Copy your picture to doc/pictures/. If used in a md file, it will automatically be moved to the html/ folder. Add a tag ![Pic Title](filename.png). If you need to control the image size, use HTML: \image html picture.png "caption width=50%

Markdown Basics

In the following, you will be presented code snippets and their result after compiling the markdown code.

Code:

```C
int main()
```

Result:

int main()
int main(int argc, char **argv)


Code:

`cd ..`

Result: cd ..


Code:

## Title 1
### Subtitle 1
#### Subsubtitle 1

Result:

Title 1

Subtitle 1

Subsubtitle 1


Code:

**This is the title of a section**

Result: This is the title of a section


Code:

@ref doc "Title of the link to this page"

Result: Title of the link to this page


Code:

[This is the title of the link to Google](https://www.google.com)

Result: This is the title of the link to Google


Code:

<a href="https://www.google.com">Another Link to Google</a>

Result: Another Link to Google

For more information on Basic Markdown Syntax, visit this page.