Skip to content

Commit 90a04bb

Browse files
Put doxide init in repo
1 parent 37ba4bf commit 90a04bb

7 files changed

Lines changed: 146 additions & 1 deletion

File tree

.github/workflows/make-docs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ jobs:
3232
3333
- name: Build Doxide Documentation
3434
run: |
35-
doxide --title "ro-crate-cpp" --description "A header only library for creating RO-Crates in C++" init
3635
doxide build
3736
3837
- name: Build MkDocs Site

docs/javascripts/mathjax.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
window.MathJax = {
2+
tex: {
3+
inlineMath: [["\\(", "\\)"]],
4+
displayMath: [["\\[", "\\]"]],
5+
processEscapes: true,
6+
processEnvironments: true
7+
},
8+
options: {
9+
ignoreHtmlClass: ".*|",
10+
processHtmlClass: "arithmatex"
11+
}
12+
};
13+
14+
document$.subscribe(() => {
15+
MathJax.typesetPromise()
16+
})

docs/javascripts/tablesort.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
document$.subscribe(function() {
2+
var tables = document.querySelectorAll("article table:not([class])")
3+
tables.forEach(function(table) {
4+
new Tablesort(table)
5+
})
6+
})
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<div class="md-copyright">
2+
{% if config.copyright %}
3+
<div class="md-copyright__highlight">
4+
{{ config.copyright }}
5+
</div>
6+
{% endif %}
7+
{% if not config.extra.generator == false %}
8+
Made with
9+
<a href="https://doxide.org" target="_blank" rel="noopener">
10+
Doxide
11+
</a>
12+
and
13+
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
14+
Material for MkDocs
15+
</a>
16+
{% endif %}
17+
</div>

docs/stylesheets/doxide.css

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
:root {
2+
--md-admonition-icon--variable: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.41 3c1.39 2.71 1.94 5.84 1.59 9-.2 3.16-1.3 6.29-3.17 9l-1.53-1c1.61-2.43 2.55-5.2 2.7-8 .34-2.8-.11-5.57-1.3-8l1.71-1M5.17 3 6.7 4C5.09 6.43 4.15 9.2 4 12c-.34 2.8.12 5.57 1.3 8l-1.69 1c-1.4-2.71-1.96-5.83-1.61-9 .2-3.16 1.3-6.29 3.17-9m6.91 7.68 2.32-3.23h2.53l-3.78 5 2.2 4.92h-2.26L11.71 14l-2.43 3.33H6.76l3.9-5.12-2.13-4.76h2.27l1.28 3.23Z"/></svg>');
3+
--md-admonition-icon--function: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.6 5.29c-1.1-.1-2.07.71-2.17 1.82L13.18 10H16v2h-3l-.44 5.07a3.986 3.986 0 0 1-4.33 3.63 4.007 4.007 0 0 1-3.06-1.87l1.5-1.5c.24.74.9 1.31 1.73 1.38 1.1.1 2.07-.71 2.17-1.82L11 12H8v-2h3.17l.27-3.07c.19-2.2 2.13-3.83 4.33-3.63 1.31.11 2.41.84 3.06 1.87l-1.5 1.5c-.24-.74-.9-1.31-1.73-1.38Z"/></svg>');
4+
--md-admonition-icon--typedef: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M 13.43 7.11 L 13.18 10 H 17 V 12 H 13 L 12.56 17.07 A 1 1 0 0 0 15.287 17.261 L 17.028 17.48 A 1 1 0 0 1 10.57 16.89 L 11 12 H 8 V 10 H 11.17 L 11.44 6.93 Z"/></svg>');
5+
--md-admonition-icon--concept: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3.75 3.5a.25.25 0 0 0-.25.25v2.062a.75.75 0 1 1-1.5 0V3.75C2 2.783 2.783 2 3.75 2h2.062a.75.75 0 1 1 0 1.5Zm13.688-.75a.75.75 0 0 1 .75-.75h2.062c.966 0 1.75.783 1.75 1.75v2.062a.75.75 0 1 1-1.5 0V3.75a.25.25 0 0 0-.25-.25h-2.062a.75.75 0 0 1-.75-.75ZM2.75 17.438a.75.75 0 0 1 .75.75v2.062c0 .138.112.25.25.25h2.062a.75.75 0 1 1 0 1.5H3.75A1.75 1.75 0 0 1 2 20.25v-2.062a.75.75 0 0 1 .75-.75Zm18.5 0a.75.75 0 0 1 .75.75v2.062A1.75 1.75 0 0 1 20.25 22h-2.062a.75.75 0 1 1 0-1.5h2.062a.25.25 0 0 0 .25-.25v-2.062a.75.75 0 0 1 .75-.75Zm-18.5-8.25a.75.75 0 0 1 .75.75v4.124a.75.75 0 1 1-1.5 0V9.938a.75.75 0 0 1 .75-.75ZM9.188 2.75a.75.75 0 0 1 .75-.75h4.124a.75.75 0 1 1 0 1.5H9.938a.75.75 0 0 1-.75-.75Zm0 18.5a.75.75 0 0 1 .75-.75h4.124a.75.75 0 1 1 0 1.5H9.938a.75.75 0 0 1-.75-.75ZM21.25 9.188a.75.75 0 0 1 .75.75v4.124a.75.75 0 1 1-1.5 0V9.938a.75.75 0 0 1 .75-.75ZM3.75 8.25a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Zm5.5 0A.75.75 0 0 1 10 7.5h2A.75.75 0 0 1 12 9h-2a.75.75 0 0 1-.75-.75Zm-1-4.5A.75.75 0 0 1 9 4.5v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .75-.75Zm0 5.5A.75.75 0 0 1 9 10v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .75-.75Zm0 4.75a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0v-4a.75.75 0 0 1 .75-.75ZM14 8.25a.75.75 0 0 1 .75-.75h4a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.75-.75Z"/></svg>');
6+
--md-admonition-icon--macro: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m5.41 21 .71-4h-4l.35-2h4l1.06-6h-4l.35-2h4l.71-4h2l-.71 4h6l.71-4h2l-.71 4h4l-.35 2h-4l-1.06 6h4l-.35 2h-4l-.71 4h-2l.71-4h-6l-.71 4h-2M9.53 9l-1.06 6h6l1.06-6h-6Z"/></svg>');
7+
}
8+
9+
.md-typeset .admonition.variable, .md-typeset details.variable,
10+
.md-typeset .admonition.function, .md-typeset details.function,
11+
.md-typeset .admonition.typedef, .md-typeset details.typedef,
12+
.md-typeset .admonition.concept, .md-typeset details.concept,
13+
.md-typeset .admonition.macro, .md-typeset details.macro {
14+
border-color: var(--md-default-fg-color--lighter);
15+
}
16+
17+
.md-typeset .variable > .admonition-title, .md-typeset .variable > summary,
18+
.md-typeset .function > .admonition-title, .md-typeset .function > summary,
19+
.md-typeset .typedef > .admonition-title, .md-typeset .typedef > summary,
20+
.md-typeset .concept > .admonition-title, .md-typeset .concept > summary,
21+
.md-typeset .macro > .admonition-title, .md-typeset .macro > summary {
22+
background-color: var(--md-default-bg-color);
23+
}
24+
25+
.md-typeset .variable > .admonition-title::before,
26+
.md-typeset .variable > summary::before {
27+
background-color: var(--md-default-fg-color--light);
28+
-webkit-mask-image: var(--md-admonition-icon--variable);
29+
mask-image: var(--md-admonition-icon--variable);
30+
}
31+
32+
.md-typeset .function > .admonition-title::before,
33+
.md-typeset .function > summary::before {
34+
background-color: var(--md-default-fg-color--light);
35+
-webkit-mask-image: var(--md-admonition-icon--function);
36+
mask-image: var(--md-admonition-icon--function);
37+
}
38+
39+
.md-typeset .typedef > .admonition-title::before,
40+
.md-typeset .typedef > summary::before {
41+
background-color: var(--md-default-fg-color--light);
42+
-webkit-mask-image: var(--md-admonition-icon--typedef);
43+
mask-image: var(--md-admonition-icon--typedef);
44+
}
45+
46+
.md-typeset .concept > .admonition-title::before,
47+
.md-typeset .concept > summary::before {
48+
background-color: var(--md-default-fg-color--light);
49+
-webkit-mask-image: var(--md-admonition-icon--concept);
50+
mask-image: var(--md-admonition-icon--concept);
51+
}
52+
53+
.md-typeset .macro > .admonition-title::before,
54+
.md-typeset .macro > summary::before {
55+
background-color: var(--md-default-fg-color--light);
56+
-webkit-mask-image: var(--md-admonition-icon--macro);
57+
mask-image: var(--md-admonition-icon--macro);
58+
}

doxide.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
title: ro-crate-cpp
2+
description: A header only library for creating RO-Crates in C++
3+
files:
4+
- "ro-crate.hpp"

mkdocs.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
site_name: ro-crate-cpp
2+
site_description: A header only library for creating RO-Crates in C++
3+
theme:
4+
name: material
5+
custom_dir: docs/overrides
6+
features:
7+
- navigation.indexes
8+
palette:
9+
# Palette toggle for light mode
10+
- scheme: default
11+
primary: red
12+
accent: red
13+
toggle:
14+
icon: material/brightness-7
15+
name: Switch to dark mode
16+
17+
# Palette toggle for dark mode
18+
- scheme: slate
19+
primary: red
20+
accent: red
21+
toggle:
22+
icon: material/brightness-4
23+
name: Switch to light mode
24+
25+
markdown_extensions:
26+
- def_list
27+
- attr_list
28+
- admonition
29+
- pymdownx.details
30+
- pymdownx.superfences
31+
- pymdownx.arithmatex:
32+
generic: true
33+
- pymdownx.emoji:
34+
emoji_index: !!python/name:material.extensions.emoji.twemoji
35+
emoji_generator: !!python/name:material.extensions.emoji.to_svg
36+
plugins:
37+
- search
38+
extra_css:
39+
- stylesheets/doxide.css
40+
extra_javascript:
41+
- javascripts/mathjax.js
42+
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
43+
- https://cdn.jsdelivr.net/npm/tablesort@5.3.0/src/tablesort.min.js
44+
- https://cdn.jsdelivr.net/npm/tablesort@5.3.0/src/sorts/tablesort.number.js
45+
- javascripts/tablesort.js

0 commit comments

Comments
 (0)