Skip to content

Commit 3c8d6c2

Browse files
authored
Merge pull request #27 from openml/dev
Support for building documentation in markdown
2 parents 199bcd3 + c25e271 commit 3c8d6c2

File tree

8 files changed

+475
-1
lines changed

8 files changed

+475
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Manifest.toml
44
#*
55
.DS_Store
66
sandbox/
7-
/docs/build/
87
/docs/site/
98
/docs/Manifest.toml
109
.vscode

docs/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
33
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
44
OpenML = "8b6db2d4-7670-4922-a472-f9537c81ab66"
55
ScientificTypes = "321657f4-b219-11e9-178b-2701a2544e81"
6+
DocumenterMarkdown
67

78
[compat]
89
Documenter = "~0.26"

docs/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Contains both the original `Documenter.jl` documentation and the same documentation rendered as markdown to include in the harmonized OpenML docs.
2+
3+
Generating the markdown is done as follows:
4+
5+
* Install [DocumenterMarkDown](https://documentermarkdown.juliadocs.org/dev/).
6+
* Note: currently this only works with version 0.27 of Documenter.jl
7+
* In Julia, open the package manager (type ']') and run `add [email protected]` and `add DocumenterMarkdown`.
8+
* Run `julia make-md.jl` in the `docs` folder to generate the markdown filew
9+
* These appear in the `build` folder
10+
* Run `mkdocs serve` in the root folder to build the markdown docs.
11+

docs/build/assets/Documenter.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
div.wy-menu-vertical ul.current li.toctree-l3 a {
2+
font-weight: bold;
3+
}
4+
5+
a.documenter-source {
6+
float: right;
7+
}
8+
9+
.documenter-methodtable pre {
10+
margin-left: 0;
11+
margin-right: 0;
12+
margin-top: 0;
13+
padding: 0;
14+
}
15+
16+
.documenter-methodtable pre.documenter-inline {
17+
display: inline;
18+
}

docs/build/assets/mathjaxhelper.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
MathJax.Hub.Config({
2+
"tex2jax": {
3+
inlineMath: [['$','$'], ['\\(','\\)']],
4+
processEscapes: true
5+
}
6+
});
7+
MathJax.Hub.Config({
8+
config: ["MMLorHTML.js"],
9+
jax: [
10+
"input/TeX",
11+
"output/HTML-CSS",
12+
"output/NativeMML"
13+
],
14+
extensions: [
15+
"MathMenu.js",
16+
"MathZoom.js",
17+
"TeX/AMSmath.js",
18+
"TeX/AMSsymbols.js",
19+
"TeX/autobold.js",
20+
"TeX/autoload-all.js"
21+
]
22+
});
23+
MathJax.Hub.Config({
24+
TeX: { equationNumbers: { autoNumber: "AMS" } }
25+
});

0 commit comments

Comments
 (0)