Skip to content

Commit 1cc9867

Browse files
Project: Add API doc generation via TypeDoc.
1 parent c643e6b commit 1cc9867

File tree

5 files changed

+393
-1
lines changed

5 files changed

+393
-1
lines changed

config/typedoc.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"name": "Universal Hex API Docs",
3+
"inputFiles": ["./src"],
4+
"readme": "./docs/api-readme.md",
5+
"exclude": [
6+
"**/__tests__/**/*"
7+
],
8+
"mode": "modules",
9+
"out": "./docs/api",
10+
"excludeExternals": true,
11+
"excludeNotExported": true,
12+
"excludeProtected": true,
13+
"excludePrivate": true,
14+
"stripInternal": true,
15+
"includeVersion": true,
16+
"hideGenerator": false,
17+
"theme": "./node_modules/typedoc-neo-theme/bin/default",
18+
"source": [{
19+
"path": "https://github.com/microbit-foundation/microbit-universal-hex/tree/v0.2.1/src/",
20+
"line": "L"
21+
}],
22+
"links": [{
23+
"label": " | ",
24+
"url": null
25+
}, {
26+
"label": " Universal Hex Spec ",
27+
"url": "https://github.com/microbit-foundation/spec-universal-hex/"
28+
}, {
29+
"label": " | ",
30+
"url": null
31+
}, {
32+
"label": " General Docs ",
33+
"url": "https://microbit-foundation.github.io/microbit-universal-hex/"
34+
}, {
35+
"label": " | ",
36+
"url": null
37+
}, {
38+
"label": " micro:bit Tech Site ",
39+
"url": "https://tech.microbit.org/"
40+
}
41+
],
42+
"outline": [{
43+
"Public API": {
44+
"Universal Hex module": "modules/_universal_hex_"
45+
}
46+
}
47+
]
48+
}

docs/_config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ kramdown:
77
# Interprets line breaks literally
88
hard_wrap: false
99

10+
# Exclude this file as it will be used for the TypeDoc API docs generator
11+
exclude:
12+
- api-readme.md
13+
1014
# Just The Docs settings
1115

1216
# Enable or disable the site search

docs/api-readme.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Universal Hex API Documentation
2+
3+
This is the API documentation for the micro:bit Universal Hex TypeScript
4+
library.
5+
6+
<p align="center"><img width="50%" alt="microbit-universal-hex logo" src="https://raw.githubusercontent.com/microbit-foundation/microbit-universal-hex/master/docs/img/microbit-uh-logo.png"></p>
7+
8+
Here you will find the available public API to convert Intel Hex strings into Universal Hex strings and vice-versa.
9+
10+
The source code is well annotated with in-line documentation and
11+
[TypeDoc](http://typedoc.org) is used to generate this HTML representation.
12+
13+
## Navigation
14+
15+
- ⬆️ Related links can be found on the header
16+
- ⬅️ Available public modules listed on the left
17+
- ➡️ (Within modules) Table of contents for interfaces and functions on the right
18+
- ⬆️ Search functionality can be found on the header as well
19+
20+
## Rest Of The Documentation
21+
22+
- [General documentation for this
23+
library](https://microbit-foundation.github.io/microbit-universal-hex/)
24+
- [The micro:bit Universal Hex Specification contains a lot more information
25+
about the file data format](https://github.com/microbit-foundation/spec-universal-hex)
26+
- [The micro:bit Tech Site contains general technical information about the
27+
micro:bit](https://tech.microbit.org)
28+
29+
## License
30+
31+
This documentation, as well as the rest of the source files located in the
32+
https://github.com/microbit-foundation/microbit-universal-hex repository, is
33+
released under the MIT open source license.
34+
35+
SPDX-License-Identifier: MIT

0 commit comments

Comments
 (0)