Skip to content

Commit 2d5d868

Browse files
docs: migrate documentation to Dockle (#306)
1 parent 3d4cf5a commit 2d5d868

10 files changed

Lines changed: 54 additions & 66 deletions

File tree

‎.gitignore‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@
4141
build/
4242
cmake-*/
4343

44-
# doxyconfig
45-
docs/doxyconfig*
44+
# Dockle
45+
/.dockle/
46+
/_site/
4647

4748
# CTest
4849
Testing/

‎.gitmodules‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
[submodule "third-party/doxyconfig"]
2-
path = third-party/doxyconfig
3-
url = https://github.com/LizardByte/doxyconfig.git
1+
[submodule "third-party/dockle"]
2+
path = third-party/dockle
3+
url = https://github.com/LizardByte/dockle.git
44
branch = master
55
[submodule "third-party/lizardbyte-common"]
66
path = third-party/lizardbyte-common

‎.readthedocs.yaml‎

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,23 @@ version: 2
88
build:
99
os: ubuntu-24.04
1010
tools:
11+
nodejs: "24"
1112
python: "miniconda-latest"
12-
commands:
13-
- |
14-
if [ -f readthedocs_build.sh ]; then
15-
doxyconfig_dir="."
16-
else
17-
doxyconfig_dir="./third-party/doxyconfig"
18-
fi
19-
chmod +x "${doxyconfig_dir}/readthedocs_build.sh"
20-
export DOXYCONFIG_DIR="${doxyconfig_dir}"
21-
"${doxyconfig_dir}/readthedocs_build.sh"
13+
jobs:
14+
build:
15+
html:
16+
- |
17+
if [ -f readthedocs_build.sh ]; then
18+
dockle_dir="."
19+
else
20+
dockle_dir="./third-party/dockle"
21+
fi
22+
chmod +x "${dockle_dir}/readthedocs_build.sh"
23+
export DOCKLE_DIR="${dockle_dir}"
24+
"${dockle_dir}/readthedocs_build.sh"
2225
23-
# using conda, we can get newer doxygen and graphviz than ubuntu provide
24-
# https://github.com/readthedocs/readthedocs.org/issues/8151#issuecomment-890359661
2526
conda:
26-
environment: third-party/doxyconfig/environment.yml
27+
environment: third-party/dockle/environment.yml
2728

2829
submodules:
2930
include: all

‎CMakeLists.txt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ endif()
3131
#
3232
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
3333
if(BUILD_DOCS)
34-
add_subdirectory(third-party/doxyconfig docs)
34+
include(third-party/dockle/cmake/Dockle.cmake)
35+
dockle_add_docs(docs TARGETS api)
3536
endif()
3637

3738
if(BUILD_TESTS)

‎README.md‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,3 @@ ninja -C build
9292
## ❓ Support
9393

9494
Our support methods are listed in our [LizardByte Docs](https://lizardbyte.readthedocs.io/latest/about/support.html).
95-
96-
<details style="display: none;">
97-
<summary></summary>
98-
[TOC]
99-
</details>

‎dockle.toml‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[project]
2+
name = "libdisplaydevice"
3+
version = "0.0.0"
4+
description = "C++ library to modify display devices."
5+
repository = "https://github.com/LizardByte/libdisplaydevice"
6+
logo = "https://raw.githubusercontent.com/LizardByte/.github/refs/heads/master/branding/logos/logo.svg"
7+
8+
[build]
9+
output = "_site"
10+
work = ".dockle"
11+
strict = true
12+
clean = true
13+
14+
[[targets]]
15+
name = "api"
16+
title = "libdisplaydevice documentation"
17+
framework = "doxygen"
18+
source = "."
19+
home = true
20+
21+
[targets.doxygen]
22+
inputs = ["README.md", "src"]
23+
extra_stylesheets = [
24+
"https://cdn.jsdelivr.net/npm/@lizardbyte/shared-web@2026.920.12131/dist/crowdin-dockle-css.css",
25+
]
26+
extra_javascript = [
27+
"https://cdn.jsdelivr.net/npm/@lizardbyte/shared-web@2026.920.12131/dist/crowdin.js",
28+
"docs/crowdin.js",
29+
]
30+
main_page = "README.md"

‎docs/Doxyfile‎

Lines changed: 0 additions & 41 deletions
This file was deleted.

‎docs/crowdin.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
globalThis.initCrowdIn('LizardByte-docs', 'dockle')

‎third-party/dockle‎

Submodule dockle added at c1bca82

‎third-party/doxyconfig‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)