Skip to content

Commit 0693c63

Browse files
feat(layout): add crowdin widget
1 parent 08b7ebe commit 0693c63

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

doxyconfig-Doxyfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ HTML_HEADER = doxyconfig-header.html
5151
HTML_EXTRA_FILES += doxyconfig-readthedocs-search.js
5252
HTML_EXTRA_STYLESHEET += doxyconfig.css
5353

54+
# @lizardbyte/shared-web
55+
HTML_EXTRA_FILES += ../node_modules/@lizardbyte/shared-web/dist/crowdin.js
56+
HTML_EXTRA_STYLESHEET += ../node_modules/@lizardbyte/shared-web/dist/crowdin-doxygen-css.css
57+
5458
# custom aliases
5559
ALIASES = ""
5660
ALIASES += "examples=^^**Examples**^^@code{.cpp}"

doxyconfig-header.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
<script type="text/javascript" src="$relpath^assets/fontawesome/js/all.min.js"></script>
3030
<!--FONTAWESOME END-->
3131

32+
<!--LIZARDBYTE/SHARED-WEB START-->
33+
<script type="text/javascript" src="$relpath^crowdin.js"></script>
34+
<script type="text/javascript">
35+
initCrowdIn('LizardByte-docs', null);
36+
</script>
37+
3238
<!--DOXYGEN-AWESOME START-->
3339
<script type="text/javascript" src="$relpath^doxygen-awesome-darkmode-toggle.js"></script>
3440
<script type="text/javascript" src="$relpath^doxygen-awesome-fragment-copy-button.js"></script>

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"dependencies": {
3-
"@fortawesome/fontawesome-free": "6.7.2"
3+
"@fortawesome/fontawesome-free": "6.7.2",
4+
"@lizardbyte/shared-web": "2025.326.11214"
45
},
56
"devDependencies": {
67
"jquery": "^3.7.1"

0 commit comments

Comments
 (0)