Skip to content

Commit b66d276

Browse files
committed
Add first working version
1 parent 86e2157 commit b66d276

40 files changed

+1104
-1
lines changed

.github/workflows/deploy-web.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build and deploy docs to GitHub Pages
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
permissions:
8+
contents: write
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-python@v4
15+
with:
16+
python-version: 3.x
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: 'latest'
20+
- run: npm install typedoc --save-dev
21+
- uses: actions/cache@v2
22+
with:
23+
key: ${{ github.ref }}
24+
path: .cache
25+
- run: python -m pip install -e .\[dev\]
26+
- run: make fixRelativeLinkDocs
27+
- run: mkdocs gh-deploy --force
+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: MkDoxy build all supported Python versions
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
# You can use PyPy versions in python-version.
10+
matrix:
11+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 'latest'
23+
- name: Install typedoc
24+
run: npm install typedoc --save-dev
25+
# You can test your matrix by printing the current Python version
26+
- name: Display Python version
27+
run: python -c "import sys; print(sys.version)"
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
python -m pip install -e .\[dev\]
32+
- name: Build docs
33+
run: mkdocs build --clean --verbose

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,4 @@ cython_debug/
158158
# and can be added to the global gitignore or merged into this file. For a more nuclear
159159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160160
#.idea/
161+
node_modules/

.idea/.gitignore

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

+22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/profiles_settings.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/mkdocs-typedoc.iml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Makefile

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
.PHONY: package release release-test clean reviewCode docs-serve docs-build
2+
3+
# Packaging
4+
package:
5+
rm -f dist/*
6+
python3 setup.py sdist bdist_wheel
7+
8+
install: package
9+
python3 -m pip install --no-deps --force dist/*.whl
10+
11+
install-dev: package
12+
python3 -m pip install --force --editable .
13+
14+
release: package
15+
twine upload --repository pypi dist/*
16+
17+
release-test: package
18+
twine upload --repository testpypi dist/*
19+
20+
clean:
21+
rm -rf dist build
22+
23+
24+
fixRelativeLinkDocs:
25+
# change ./docs/ to ./
26+
sed 's/\.\/docs\//\.\//g' README.md > docs/README.md
27+
28+
# Testing
29+
reviewCode:
30+
sourcery review mkdoxy --in-place
31+
32+
install-dev:
33+
python3 -m pip install --force --editable .
34+
35+
# Documentation
36+
docs-serve: fixRelativeLinkDocs
37+
mkdocs serve
38+
39+
docs-build: fixRelativeLinkDocs
40+
mkdocs build

README.md

+65-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,65 @@
1-
# mkdocs-typedoc
1+
# Mkdocs-Typedoc Plugin
2+
3+
<p align="center">
4+
<a href="https://hits.seeyoufarm.com"><img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FJakubAndrysek%2Fmkdocs-typedoc&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=true"/></a>
5+
<a href="https://github.com/JakubAndrysek/mkdocs-typedoc/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/github/license/JakubAndrysek/mkdocs-typedoc?style=flat-square"></a>
6+
<a href="https://pypi.org/project/mkdocs-typedoc/" target="_blank"><img alt="PyPI" src="https://img.shields.io/pypi/v/mkdocs-typedoc?style=flat-square"></a>
7+
<a href="https://github.com/JakubAndrysek/mkdocs-typedoc/stargazers" target="_blank"><img src="https://img.shields.io/github/stars/JakubAndrysek/mkdocs-typedoc?style=flat-square"></a>
8+
<a href="https://github.com/JakubAndrysek/mkdocs-typedoc/forks" target="_blank"><img src="https://img.shields.io/github/forks/JakubAndrysek/mkdocs-typedoc?style=flat-square"></a>
9+
<a href="https://github.com/JakubAndrysek/mkdocs-typedoc/issues" target="_blank"><img src="https://img.shields.io/github/issues/JakubAndrysek/mkdocs-typedoc?style=flat-square"></a>
10+
<a href="https://github.com/JakubAndrysek/mkdocs-typedoc/discussions" target="_blank"><img src="https://img.shields.io/github/discussions/JakubAndrysek/mkdocs-typedoc?style=flat-square"></a>
11+
<a href="https://pypistats.org/packages/mkdocs-typedoc" target="_blank"><img src="https://static.pepy.tech/personalized-badge/mkdocs-typedoc?period=month&units=international_system&left_color=black&right_color=orange&left_text=Downloads"></a>
12+
</p>
13+
14+
The Mkdocs-Typedoc Plugin is designed to integrate TypeDoc documentation with your MkDocs project.
15+
16+
## Installation
17+
18+
Install the plugin using pip from [PyPI](https://pypi.org/project/mkdocs-typedoc/):
19+
20+
```bash
21+
pip install mkdocs-typedoc
22+
```
23+
24+
Ensure that you have [Node.js](https://nodejs.org/en/) installed in your system. If not, you can download it from the official website.
25+
26+
Also, install [TypeDoc](https://typedoc.org/) using [NPM](https://www.npmjs.com/):
27+
28+
```bash
29+
npm install typedoc --save-dev
30+
```
31+
32+
## Usage
33+
34+
Add the following lines to your mkdocs.yml:
35+
36+
```yaml
37+
plugins:
38+
- typedoc:
39+
source: './ts-examples/@types/*.d.ts'
40+
output_dir: 'typedocApi'
41+
tsconfig: './ts-examples/tsconfig.json'
42+
options: 'typedoc.json'
43+
name: 'API Doc'
44+
```
45+
46+
- `source` (required): The path to your TypeScript source code.
47+
- `output_dir` (optional): The directory where you want to output your docs. Default is "typedoc".
48+
- `tsconfig` (required): The path to the tsconfig file for your project.
49+
- `options` (optional): The path to the typedoc.json options file with more options.
50+
- `name` (optional): The name for the generated documentation. Default is "TypeDoc API".
51+
52+
The plugin will generate TypeDoc documentation into the output directory specified.
53+
54+
## Contributing
55+
56+
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
57+
58+
## Do You Enjoy My Work?
59+
Then definitely consider:
60+
61+
- supporting me on GitHub Sponsors: [![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/jakubandrysek)
62+
63+
## License
64+
65+
[MIT](https://choosealicense.com/licenses/mit/)

docs/CNAME

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
typedoc.kubaandrysek.cz

docs/README.md

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Mkdocs-Typedoc Plugin
2+
3+
The Mkdocs-Typedoc Plugin is designed to integrate TypeDoc documentation with your MkDocs project.
4+
5+
## Installation
6+
7+
Install the plugin using pip from [PyPI](https://pypi.org/project/mkdocs-typedoc/):
8+
9+
```bash
10+
pip install mkdocs-typedoc
11+
```
12+
13+
Ensure that you have [Node.js](https://nodejs.org/en/) installed in your system. If not, you can download it from the official website.
14+
15+
Also, install [TypeDoc](https://typedoc.org/) using [NPM](https://www.npmjs.com/):
16+
17+
```bash
18+
npm install typedoc --save-dev
19+
```
20+
21+
## Usage
22+
23+
Add the following lines to your mkdocs.yml:
24+
25+
```yaml
26+
plugins:
27+
- typedoc:
28+
source: './ts-examples/@types/*.d.ts'
29+
output_dir: 'typedocApi'
30+
tsconfig: './ts-examples/tsconfig.json'
31+
options: 'typedoc.json'
32+
name: 'API Doc'
33+
```
34+
35+
- `source` (required): The path to your TypeScript source code.
36+
- `output_dir` (optional): The directory where you want to output your docs. Default is "typedoc".
37+
- `tsconfig` (required): The path to the tsconfig file for your project.
38+
- `options` (optional): The path to the typedoc.json options file with more options.
39+
- `name` (optional): The name for the generated documentation. Default is "TypeDoc API".
40+
41+
The plugin will generate TypeDoc documentation into the output directory specified.
42+
43+
## Contributing
44+
45+
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
46+
47+
## Do You Enjoy My Work?
48+
Then definitely consider:
49+
50+
- supporting me on GitHub Sponsors: [![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/jakubandrysek)
51+
52+
## License
53+
54+
[MIT](https://choosealicense.com/licenses/mit/)

docs/assets/logo.png

54.4 KB
Loading

0 commit comments

Comments
 (0)