Compare commits

...

261 Commits
v0.8.0 ... main

Author SHA1 Message Date
Patrice Chalin 55db259b4d
ScrollSpy: drop smooth scrolling (#2291) 2025-06-13 20:18:28 -04:00
Patrice Chalin 3a5cfeada3
Refine scrollspy style and behavior (#2290) 2025-06-13 19:06:18 -04:00
Patrice Chalin 4323d098da
Add support for BS ScrollSpy to show active TOC entry (#2287) 2025-06-13 08:01:45 -04:00
Patrice Chalin aa0f617ff7
Accessibility color fixes, and falling back to BS defaults for typography and color (#2285)
Co-authored-by: Tiffany Hrabusa <30397949+tiffany76@users.noreply.github.com>
2025-06-13 07:30:56 -04:00
Patrice Chalin f8f02e7abe
Update package.json, Hugo to 0.147.8 (#2286) 2025-06-12 19:14:58 -04:00
Patrice Chalin b3e4ccf8a8
A better alert shortcode more markdown friendly (#941) 2025-06-12 08:10:11 -04:00
Patrice Chalin 433ddb6a67
UG cleanup of alert calls: drop color when set to default (#2282) 2025-06-10 18:56:22 -04:00
Andreas Deininger a824b2a51d
Shortcode 'card': trimming of whitespace (#2278) 2025-06-05 15:00:01 -04:00
Patrice Chalin 614e7ec541
Update package.json: use NPM vers of Node (#2275) 2025-06-01 05:49:24 -04:00
Patrice Chalin db526c5963
Hugo and Netlify NPM pkgs: update & change to peer; update UG (#2274) 2025-05-31 07:34:17 -04:00
ensag-dev 627a0df8a6
i18n: adds Occitan locale (#2173) 2025-05-27 12:47:24 -04:00
Patrice Chalin 0f055744e5
Set NPM package version to next unreleased dev version 0.12.1-dev (#2269) 2025-05-27 12:42:30 -04:00
Patrice Chalin ace4e37cee
Release v0.12.0 preparation (#2265) 2025-05-27 10:42:33 -04:00
Patrice Chalin 706f2c81cb
Update min Hugo version in theme config, and some UG copyedits (#2267) 2025-05-27 10:00:54 -04:00
Andreas Deininger dbfb6c40a4
User guide, LaTeX: typesetting of formulae using standard syntax (II) (#2195) 2025-05-27 09:33:16 -04:00
chrish 1d490986dd
i18n Norwegian: Added missing key, updated translations (#2186)
Co-authored-by: Patrice Chalin <chalin@users.noreply.github.com>
2025-05-27 08:23:51 -04:00
Patrice Chalin bed4f25de4
Streamline README.md and other copyedits (#2264) 2025-05-27 06:26:00 -04:00
jorado 5d2f05f2af
Use font-weight-bold variable (#2234)
Co-authored-by: Patrice Chalin <chalin@users.noreply.github.com>
2025-05-27 05:55:31 -04:00
luigicaetano b40e075a25
i18n PT-BR: Added missing key, updated translations (#2233)
Co-authored-by: Patrice Chalin <chalin@users.noreply.github.com>
2025-05-27 05:30:57 -04:00
Attila Greguss f15d519ea5
Update Swagger UI to 5.21.0 (latest) (#2252) 2025-05-27 05:29:43 -04:00
Jack Arton 27f37fdd34
Update Ukrainian translation file (uk.toml): fixed errors, added missing keys, unified tone (#2248) 2025-05-27 05:26:48 -04:00
Andreas Deininger b999711cec
Linting of .scss files (#2253) 2025-05-27 04:47:31 -04:00
Patrice Chalin 84af4401a3
Update Hugo to 0.147.5 (#2263) 2025-05-27 04:23:47 -04:00
Patrice Chalin 89bd75149f
Config file misc clean up and refcache update (#2262) 2025-05-23 09:15:30 -04:00
Patrice Chalin b8366110d7
Make content-after-header a layout fragment again (#2261) 2025-05-23 08:30:01 -04:00
Patrice Chalin 4939576fd7
Changelog updates for layout refactorings (#2260) 2025-05-23 07:04:53 -04:00
Patrice Chalin b8d1d51369
Rename layout fragment to include `_td` prefix (#2259) 2025-05-22 19:08:56 -04:00
Andreas Deininger 3b258a5afd
User guide: minor improvements (#2258) 2025-05-22 16:43:06 -04:00
Patrice Chalin ef2f9a91ef
Move taxonomy and terms out of _default (#2257) 2025-05-22 16:05:52 -04:00
Patrice Chalin dc6a30a9df
Move new content-after-header hook into partials folder, add UG entry (#2256) 2025-05-22 13:50:29 -04:00
Patrice Chalin 044322e98f
Moving some files out of `layouts/_default`, and using `all.html` (#2255) 2025-05-22 12:23:04 -04:00
Patrice Chalin e59079dc9e
Update NPM pkgs, Hugo to 0.147.4 (#2254) 2025-05-22 11:28:53 -04:00
Patrice Chalin 4b905d3047
Drop `_internal` prefix from template paths (#2250) 2025-05-22 11:12:41 -04:00
Andreas Deininger 47fd135c4b
User guide: fix wrong file name, update version information (#2251) 2025-05-16 11:16:13 -04:00
Patrice Chalin 126685e3d0
Check all external links, fix broken links (#2249) 2025-05-16 10:19:02 -04:00
Patrice Chalin 90854cc4f5
Add underscore to `partials` and `shortcodes` directory names (#2247) 2025-05-16 08:58:32 -04:00
Patrice Chalin dba24fe5e3
Move layouts/_default/_markup one level up, adjusts UG (#2246) 2025-05-16 07:00:24 -04:00
Patrice Chalin 619fd0c5a9
[UG] Run Prettier over all pages under `adding-content` (#2244) 2025-05-16 06:31:30 -04:00
Patrice Chalin 8e5229130c
Update packages, Hugo to 0.147.3 (#2242) 2025-05-16 04:51:11 -04:00
Andreas Deininger bccd7eadc3
Cleanup: drop temporary GA template (#2237) 2025-05-14 14:25:08 -04:00
Patrice Chalin c52e543b26
Update Bootstrap to 5.3.6 (#2240) 2025-05-14 08:48:10 -04:00
Patrice Chalin 031b7aad82
Update Hugo to 0.147.2, and netlify-cli (#2239) 2025-05-14 07:12:53 -04:00
Patrice Chalin 62273b980e
Enable blank issue template (#2231) 2025-05-01 20:07:14 -04:00
Patrice Chalin f4ea6a1ebd
[UG] Taxonomy page copyedited & prettified (#2229) 2025-04-28 19:34:16 -04:00
Patrice Chalin c2e4beb5d7
Update pkgs: Hugo to 0.147.0, etc (#2228) 2025-04-26 12:41:56 -04:00
Andreas Deininger d6e9f38cd1
User guide: remove deprecated kind 'taxonomyterm' from disableKinds (#2227) 2025-04-26 12:13:49 -04:00
Patrice Chalin 343cdec14c
Rename Docsy's render-heading hook and helper partial (#2223) 2025-04-24 08:14:10 -04:00
Andreas Deininger 9b1fda9652
Bump dependency bootstrap to latest released version 5.3.5 (#2222) 2025-04-23 19:11:38 -04:00
Andreas Deininger 2903fcdcd6
Fix typo (#2219) 2025-04-23 19:07:48 -04:00
Andreas Deininger bd2bf128cc
user guide: fix preview with latest hugo version 0.146.5 (#2215) 2025-04-23 19:07:25 -04:00
nate contino a93bab7b9d
Replace 404'd link to cross reference docs with API reference for relref (#2217) 2025-04-15 10:34:16 -07:00
Patrice Chalin 3b8482557b
Heading render hook: support all attributes (#2206) 2025-03-21 15:59:14 -04:00
Patrice Chalin dc1121eb48
Update NPM pkgs, Hugo to 0.145.0 (#2204) 2025-03-19 12:49:43 -04:00
Patrice Chalin d95df6db54
[UG] Run Prettier over search.md page (#2203) 2025-03-19 11:13:45 -04:00
Patrice Chalin 86b4f3a096
[UG] Explain how to implement custom search (#2202) 2025-03-18 14:21:08 -04:00
Patrice Chalin cbc714bed7
Add link def to CHANGELOG and clean up whitespace (#2193) 2025-02-10 15:59:25 -05:00
Patrice Chalin 2239156975
[feat] Add base support of td-content-after-header hook (#2192) 2025-02-10 15:30:51 -05:00
Patrice Chalin da8cab3a0f
Upgrade Hugo to 0.143.1, etc (#2191) 2025-02-10 04:46:55 -05:00
Patrice Chalin bf5e26c8ff
Revert "UG LaTeX: typesetting of formulae using standard syntax (#1858)" (#2190) 2025-02-10 04:25:04 -05:00
Andreas Deininger 9815271015
User guide, LaTeX: typesetting of formulae using standard syntax (#1858)
undefined
2025-02-06 17:43:14 -05:00
Patrice Chalin 9e685592bb
Upgrade Hugo to 0.143.0 and add comment shortcode (#2188) 2025-02-04 13:13:02 -05:00
Patrice Chalin 77da7e4943
Fix language-drop style when in left nav (#2183) 2025-01-30 06:08:47 -05:00
Patrice Chalin a854cb315a
Update Hugo to 0.142.0, and more (#2182) 2025-01-23 20:21:54 -05:00
Andreas Deininger 7b3eaa40ae
Remove docsy's custom shortcode 'figure' (#2175) 2025-01-21 15:28:01 -05:00
Patrice Chalin 258d3e51ca
Drop style attribute using undef CSS var (#2180) 2025-01-21 14:48:14 -05:00
Patrice Chalin ef59ee75d9
[CI] Upgrade NPM packages (#2179) 2025-01-20 17:47:51 -05:00
Andreas Deininger 9c414904c5
Fix error when building user guide with latest hugo version 0.141.0 (#2177) 2025-01-20 17:29:41 -05:00
Patrice Chalin e6d94771f3
Breadcrumb for blog pages, and per-page/section config (#2161) 2025-01-10 11:30:19 -05:00
Andreas Deininger 9fbb3a6676
Bump KaTeX to latest version (#2168) 2025-01-09 16:10:40 -05:00
Peter Dave Hello a9ea2b7860
Update and improve zh-TW Traditional Chinese locale (#2158)
Co-authored-by: ChengHao Yang <tico88612@gmail.com>
2025-01-09 11:51:45 -05:00
Patrice Chalin 1b3fc5a72f
Userguide config cleanup, drop pygments config (#2166) 2025-01-09 08:47:53 -05:00
Patrice Chalin 88ec5aef5d
Render-heading: process class attributes (#2165) 2025-01-09 08:40:44 -05:00
Patrice Chalin dd5e69b4d6
Hide index-page single breadcrumb (#2160) 2025-01-08 12:46:18 -05:00
Patrice Chalin 30a6c3426e
Blog list layout whitespace cleanup (#2159) 2025-01-08 12:18:17 -05:00
Patrice Chalin 3aa3dc741f
Blog list layout: display the page title and content (#2157) 2025-01-08 11:49:09 -05:00
Patrice Chalin 6c22754f04
Blog list layout refactoring (#2155) 2025-01-07 17:04:11 -05:00
Patrice Chalin 95a08e118b
[CI] Upgrade NPM pkgs, Hugo to 0.140.2 (#2154) 2025-01-07 12:49:26 -05:00
rinsuki 2f361b2b6c
i18n: Add feedback_* to i18n/ja.toml (#2149) 2025-01-04 12:09:10 -05:00
Andreas Deininger fa81a86be8
Bump dependency Font-Awesome to latest version 6.7.2 (#2151) 2025-01-03 16:59:17 -05:00
Patrice Chalin 67f6b6a504
Blog 2024 review: Add link to LFX mentorships (#2147) 2024-12-12 13:27:01 -05:00
Patrice Chalin f3e6ca948b
Blog 2024 year in review (#2145) 2024-12-12 12:41:08 -05:00
Patrice Chalin 99c2842680
[CI] Upgrade NPM pkgs, Hugo to 0.139.4 (#2143) 2024-12-12 10:05:14 -05:00
Patrice Chalin dd72a276e6
[CI] Patch search page HTML until Hugo is fixed, FA upgrade (#2135) 2024-11-23 06:34:07 -05:00
Patrice Chalin fed2d28d24
Upgrade Hugo and FontAwesome (#2129) 2024-11-20 06:09:53 -05:00
Patrice Chalin 97dadaa6f4
[CI] Handle creation of empty Hugo-modules for deps (#2128) 2024-11-19 18:48:09 -05:00
Patrice Chalin 2a6ecfc3f9
Update CHANGELOG.md: fix copy-paste error (#2127) 2024-11-19 17:33:23 -05:00
Shihyu 706e23cbc0
Fix typo in deployment documentation (#2123) 2024-11-16 10:29:23 -05:00
Patrice Chalin aedef51e9c
Upgrade Hugo and merge optional deps into dev (#2125) 2024-11-15 11:47:52 -05:00
Patrice Chalin d1e6470a1d
[CI] Restore format check as a part of `npm test` (#2124) 2024-11-15 11:29:18 -05:00
Patrice Chalin 6e42d49c5d
External link checking + project pages (#2120) 2024-11-15 11:19:51 -05:00
Patrice Chalin 55e0ce291e
[UG] Give guidance on what to do on "failed to load modules" error (#2117) 2024-11-06 10:40:30 -05:00
Andreas Deininger 399457bbf8
User guide: correct instructions on how to disable RSS feed (#2104) 2024-11-06 10:35:47 -05:00
Patrice Chalin a914b38ccd
[CI] Make build checks pass again, skip .md link checking (#2118) 2024-11-06 10:16:29 -05:00
Patrice Chalin 675cff1e40
Delete .s3deploy.yml (#2111) 2024-11-06 09:45:12 -05:00
Patrice Chalin 03333182c9
[UG] NPM install: add `npm init` and switch to YAML config (#2114) 2024-11-06 08:45:19 -05:00
Patrice Chalin a9ee9f44a9
Update pkgs, with Hugo to 0.137.0 (#2112) 2024-11-05 20:17:36 -05:00
Patrice Chalin 768c63fc69
Set NPM package version to next unreleased dev version (#2109) 2024-11-05 19:51:45 -05:00
Alex Boten 68aa7b39fc
Add missing feedback section in french (#2105) 2024-10-31 07:15:59 -04:00
Patrice Chalin 0884d8f936
Update packages: Hugo to 0.136.5 (#2106) 2024-10-30 12:48:42 -04:00
Patrice Chalin cf0c68f041
Release 0.11.0 preparation (#2101) 2024-10-18 19:49:31 -04:00
Patrice Chalin 7478e1a158
Header meta description: use same strategy as Hugo (#2100) 2024-10-17 16:14:25 -04:00
Patrice Chalin 2357e40d13
[fa] i18n: add remaining entries (#2099) 2024-10-17 15:01:27 -04:00
Patrice Chalin 8b4e771f1f
[UG] Add RTL config section (#2098) 2024-10-15 13:07:03 -04:00
Patrice Chalin 23416d0970
[RTL] Drop unused BS asset and scripts to fetch it (#2097) 2024-10-15 12:41:58 -04:00
Patrice Chalin fe0d785d8f
RTL support via a single main style file (#2093) 2024-10-10 12:34:53 -04:00
Patrice Chalin d906564891
Update Hugo to 0.133.1, and other pkgs (#2092) 2024-10-09 20:26:01 -04:00
LDReid d1fd54078e
remove rss_sections from docs (#2087) 2024-10-01 18:48:27 -04:00
Radoš Milićev 18e9053c8e
Add support for Serbian language (cyrillic & latin) (#2088) 2024-10-01 18:30:57 -04:00
Madi 62df8798f7
Update ar.toml -Enhance Arabic User Experience with Feedback Labels and Correct Diacritics (#2058)
Co-authored-by: Patrice Chalin <chalin@users.noreply.github.com>
2024-10-01 18:17:27 -04:00
Sayak Mukhopadhyay 7504a86733
Replaced some instances of older config.yaml and config.json in userguide (#2086) 2024-10-01 18:08:05 -04:00
Andrii Holovin c67dd930ce
Update uk.toml (#2071) 2024-10-01 17:53:37 -04:00
Patrice Chalin 7951194954
Adds a warning when truncating sidebar section entries (#2069) 2024-08-08 09:23:49 -04:00
Robert Fekete 27ff9b6a75
Documents the body_class parameter (#1541)
Co-authored-by: Patrice Chalin <chalin@users.noreply.github.com>
2024-08-07 12:38:26 -04:00
Viren Nadkarni 13dc291187
Add config option to control child page limit (#1334)
Co-authored-by: Patrice Chalin <chalin@users.noreply.github.com>
2024-08-07 12:15:02 -04:00
Patrice Chalin d7280617fc
[UG] Add missing markdown link definition (#2068) 2024-08-07 11:23:58 -04:00
Patrice Chalin 2295188b16
[feat] Support `contributingUrl` param (#2067) 2024-08-06 14:13:37 -04:00
Patrice Chalin 27943e03f1
[CI][UG] Serve to memory and disable fast render (#2066) 2024-08-05 13:23:57 -04:00
Patrice Chalin 03221fd2ac
[CI] Don't check links under Windows (#2064) 2024-08-05 12:39:33 -04:00
Patrice Chalin 1b2b54b260
[infra] Upgrade all NPM packages, including Hugo to 0.131.0 (#2063) 2024-08-05 12:26:37 -04:00
Andreas Deininger 5ef373bc9f
Upgrade Hugo, Prettier, and Font-Awesome (#2059) 2024-08-05 12:12:51 -04:00
Patrice Chalin 1732730ef3
[UG][cleanup] Updating Docsy: run Prettier and cleanup front matter (#2061) 2024-08-05 11:52:40 -04:00
Avi Schwab 309da207e5
Add YMCA Website Services to Example Sites (#2037) 2024-07-01 18:13:54 -04:00
Fabrizio Ferri-Benedetti 30249c7e8c
Add note on SwaggerUI and networking (#2030) 2024-06-04 13:49:58 -04:00
Patrice Chalin 192113c711
Update all NPM packages to latest, add `update:pkgs` script, and more (#2034) 2024-06-04 13:44:25 -04:00
Andreas Deininger cd5e4d057a
User guide, deployment page: add section 'Deployment on GitHub Pages' (#1435) 2024-05-31 13:34:03 -04:00
Patrice Chalin 333c2f8d41
[RTL] Warn if RTL CSS not found + Hugo mod fix + more (#2027) 2024-05-29 06:54:43 -04:00
Joan Queralt 6549143cf3
Fixed code-dark path (#2022) 2024-05-28 16:02:32 -04:00
Patrice Chalin f42c54296c
[RTL] Add CHANGELOG entry and drop RTL for `en` (#2021) 2024-05-28 07:36:09 -04:00
Patrice Chalin b32bb90c50
[RTL] Fix top-nav position (#2018) 2024-05-28 07:22:48 -04:00
Patrice Chalin 09c158b660
[RTL] Drop unused style files (#2020) 2024-05-28 07:14:37 -04:00
Patrice Chalin 3674691337
Add RTL support using BSv5 (#2002) 2024-05-16 18:50:26 -04:00
Patrice Chalin 102892d931
Cleanup of Google analytics templates (#2006) 2024-05-16 11:06:18 -04:00
Patrice Chalin 16979af6cb
[CI] UG NPM script tweaks (#2007) 2024-05-16 11:04:09 -04:00
Patrice Chalin dd6a394789
Update Hugo to 0.126.1, script name tweaks, and more (#2000) 2024-05-16 02:07:34 -04:00
Patrice Chalin f4c7e22128
UG site config cleanup re lang params (#1994) 2024-05-09 16:14:35 -04:00
Patrice Chalin 6f7e81d34c
Upgrade to Hugo 0.125.7 (#1993) 2024-05-09 08:31:21 -04:00
Patrice Chalin f45d92e792
Set package version to 0.10.1-dev (#1986) 2024-05-07 12:51:37 -04:00
Patrice Chalin 712aa05897
Release 0.10.0 prep (#1983) 2024-05-01 16:42:36 -04:00
Andreas Deininger b0e7f0d750
Fix warning about LaTeX-incompatible input (#1984) 2024-05-01 16:27:26 -04:00
Patrice Chalin f2e336222a
[CI] use userguide/.prettierignore to specify files to ignore (#1982) 2024-05-01 11:23:41 -04:00
Patrice Chalin e0c7e142da
[Dark mode] blockquote and click-to-copy color fixes (#1981) 2024-05-01 11:10:31 -04:00
Patrice Chalin ecc639895d
Contribution guidelines: document use of Prettier (#1980) 2024-05-01 10:47:55 -04:00
Patrice Chalin 2be5ab3731
[UG] Document light/dark mode config (#1978) 2024-05-01 10:13:01 -04:00
Patrice Chalin 9c5781db26
[CI] Setup fix:format for the UG (#1977) 2024-05-01 09:25:27 -04:00
Patrice Chalin 2fcacd6781
[CI] Add scripts to generate and check Chroma styles (#1976) 2024-05-01 08:21:31 -04:00
Patrice Chalin 8f21861f9c
Rename chroma styles (#1974) 2024-05-01 08:00:19 -04:00
Patrice Chalin f07fcfeee8
[Dark mode] Fix blocks/lead down arrow color (#1971) 2024-04-30 09:03:05 -04:00
Patrice Chalin 576de00a41
Format lookandfeel.md - no content changes (#1969) 2024-04-30 07:54:29 -04:00
Patrice Chalin a8e0a1a3f7
Restrict `.td-box--white` style changes to dark mode (#1968) 2024-04-30 07:30:46 -04:00
Patrice Chalin a26d815464
Dark-mode override for `.td-box--white` (#1966) 2024-04-30 07:20:09 -04:00
Patrice Chalin a6d0a706b3
Mermaid: stick to default when not dark mode (#1965) 2024-04-30 06:41:17 -04:00
Patrice Chalin fbf4256580
Set Mermaid theme based on light/dark mode (#1964) 2024-04-30 06:25:20 -04:00
Patrice Chalin b984336121
Format mermaid.html (#1963) 2024-04-30 06:03:39 -04:00
Patrice Chalin 41075a45d7
Mark 0.10.0 release report as draft (#1960) 2024-04-30 04:13:24 -04:00
Patrice Chalin e59bb5888a
[Dark mode] Factor out code-dark styles for reuse (#1959) 2024-04-30 03:44:38 -04:00
Patrice Chalin d86006ee8c
[UG] Syntax highlighting styles for both light and dark modes (#1958) 2024-04-30 03:00:16 -04:00
Patrice Chalin f8a7a1ff67
copyright.html: process `.Site.Copyright` as HTML (#1954) 2024-04-30 02:51:27 -04:00
Andreas Deininger e67e55d7b9
Bump Persian fonts to latest version (#1955) 2024-04-30 02:50:23 -04:00
Patrice Chalin de5183910c
Use official hugo-extended NPM package + UG tweak (#1956) 2024-04-29 19:40:01 -04:00
Patrice Chalin 8fe1be546d
[Dark mode] Left-nav and taxonomy color fixes (#1952) 2024-04-29 19:29:59 -04:00
Patrice Chalin 06a792334f
Docsy 0.10.0 release report (#1945) 2024-04-29 10:30:42 -04:00
Patrice Chalin e9eca0fcb3
Upgrade to Hugo 0.125.4 (#1950) 2024-04-26 12:12:15 -04:00
Patrice Chalin bedcb9cdcb
section-index.html code cleanup (#1947) 2024-04-26 11:06:33 -04:00
Patrice Chalin a41985c223
Drop RSS layout in favor of Hugo's default (#1948) 2024-04-26 11:02:02 -04:00
Tobias Kohlbau 3be4075886
Fix section index partial NPE (#1890) 2024-04-25 12:56:58 -04:00
Patrice Chalin 256af858bf
[UG] Explain how to enable the light/dark-mode menu (#1914) 2024-04-25 11:34:40 -04:00
Andreas Deininger 7ef2f6bde4
Bump KaTeX to latest released version (#1940) 2024-04-23 18:31:47 -04:00
Andreas Deininger ec13ca8f7f
Fix use of deprecated param .Site.Params.DisqusShortname (#1934) 2024-04-23 14:36:52 -04:00
Andreas Deininger 14a0f62f65
Bump algolia docsearch to latest version (#1933) 2024-04-23 14:32:50 -04:00
Patrice Chalin eb4e250c73
Upgrade Hugo to 0.125.2 (#1939) 2024-04-23 03:49:24 -04:00
Andreas Deininger 1b5de6cd8d
Google analytics: drop deprecated async template (#1931) 2024-04-23 03:12:31 -04:00
Andreas Deininger b95a4948ee
Bump FontAwesome to latest released version 6.5.2 (#1925) 2024-04-08 06:01:54 -04:00
Patrice Chalin 820775eec6
[Dark-mode] Firefox search text color fix (#1918) 2024-04-08 05:27:03 -04:00
Patrice Chalin a77761a6de
Markdown-link-check: ignore valid URL hash in CHANGELOG (#1924) 2024-04-07 18:08:26 -04:00
Andreas Deininger 1d943e55d5
Drop deprecated shortcode 'card-code' (#1923) 2024-04-07 17:43:29 -04:00
Patrice Chalin 4ff9fc65d3
Adjust pageinfo bg to be compatible with dark-mode (#1915) 2024-04-07 17:13:56 -04:00
Patrice Chalin 74404af70b
[Dark-mode] Tabbed panes fix (#1920) 2024-04-07 17:08:32 -04:00
Patrice Chalin 4baa6ede0a
[Dark-mode] Card shortcode style fixes (#1922) 2024-04-07 17:04:05 -04:00
Patrice Chalin dd77c40305
[Dark-mode] Use default BS nav-item padding (#1919) 2024-04-06 18:33:03 -04:00
Patrice Chalin 6018506767
[Dark-mode] Fixes for mobile (#1917) 2024-04-06 17:53:27 -04:00
Patrice Chalin 4e564481bd
[Dark-mode] Tweak of param, file and resource names (#1913) 2024-04-05 15:43:07 -04:00
Patrice Chalin 003b0e63ce
Color-mode / dark-mode support (#1909) 2024-03-30 16:12:51 -04:00
Patrice Chalin 7f0078ca3c
Style adjustments in prep for dark mode support (#1908) 2024-03-28 05:57:06 -04:00
Dylan Beattie b66e42d6ab
Fixed missing output redirect in Windows command line example (#1903) 2024-03-27 18:09:20 -04:00
Patrice Chalin b077a74d38
[BS5.3] Replace `.navbar-dark` by data attribute and other style adjustments (#1896) 2024-03-26 18:03:25 -04:00
Patrice Chalin d2ba4933cb
Delete UG `layouts/sitemap.xml` (#1898) 2024-03-26 17:54:47 -04:00
Patrice Chalin e4473e7f72
Update Hugo to 0.124.1 (#1905) 2024-03-26 17:52:05 -04:00
Patrice Chalin 1929a65ccf
Support for adding and modifying theme colors (#1893) 2024-03-15 15:49:58 -04:00
Andreas Deininger c8fe4f18b5
Address .Site.DisqusShortname param deprecation warning (#1895) 2024-03-14 13:35:51 -04:00
Patrice Chalin 5fddc02d7b
[BS5.3] Replace text-muted by text-body-secondary (#1892) 2024-03-13 11:24:36 -04:00
Vinoo Ganesh 42dc4cab81
Adding Parquet Website (#1887) 2024-03-12 15:06:28 -04:00
David Marzal e4f5b428a0
Update es.toml with feedback translations (#1888) 2024-03-12 15:06:17 -04:00
Patrice Chalin f1e2002902
Update Hugo to 0.123.8, and prettier (#1891) 2024-03-12 15:06:01 -04:00
Andreas Deininger 2a8b210fe5
Upgrade to Bootstrap 5.3.3 (#1563) 2024-03-06 18:38:09 -05:00
Andreas Deininger 9e0aa1fb69
Bump jquery to latest released version 3.7.1 (#1886) 2024-03-06 18:37:29 -05:00
Andreas Deininger b0df3d92d5
Mermaid diagram with diagram specific settings: fix 'uncaught TypeError' (#1885) 2024-03-06 18:32:31 -05:00
Patrice Chalin f37de8d548
UG: fix links to modules migration page (#1883) 2024-03-06 10:28:51 -05:00
Patrice Chalin 020f8608f7
UG: normalize PSC links into local blog page (#1884) 2024-03-04 16:14:21 -05:00
Patrice Chalin a3b3ff6ed0
Upgrade to Hugo 0.123.x (#1877) 2024-03-04 15:57:54 -05:00
Patrice Chalin ff2a42e1b3
Address GA.ID param deprecation warning (#1879) 2024-03-04 15:10:19 -05:00
Patrice Chalin a72c57c939
Set NPM package version to 0.9.2-dev (#1870) 2024-02-17 16:55:41 -05:00
Patrice Chalin 6195793c0f
Release v0.9.1 preparation (#1867) 2024-02-17 14:06:48 -05:00
Patrice Chalin 3692cb8dbd
Section-index: ensure .Parent isn't nil (#1866) 2024-02-16 17:28:34 -05:00
Patrice Chalin 85fbe76d14
0.9.0 release report updates (#1865) 2024-02-16 17:28:10 -05:00
Patrice Chalin 03eafa9987
Post 0.9.0 work - set vers to `0.9.1-dev*` (#1864) 2024-02-15 17:53:20 -05:00
Patrice Chalin b2fa1c4c55
Release 0.9.0 preparation (#1860) 2024-02-14 15:31:53 -05:00
Patrice Chalin 29829ba718
[blog] Docsy 0.9.0 release report (#1854) 2024-02-14 14:27:43 -05:00
Andreas Deininger ea7405ff02
Smoke tests: don't cancel Windows build after an error in Linux build (#1857) 2024-02-13 18:11:19 -05:00
Patrice Chalin faba0f45c7
Update repository-links.md: use "metadata" (#1856) 2024-02-09 10:26:25 -05:00
Patrice Chalin 752d9e19d4
CHANGELOG tweaks for 0.9.0 (#1855) 2024-02-09 10:24:22 -05:00
Andreas Deininger 5b3da446dd
Bump KaTeX scripts to latest released version 0.16.9 (#1853) 2024-02-09 10:23:31 -05:00
Patrice Chalin 849dea0790
[UG] Document how to style and hide last-modified page notes (#1843) 2024-02-09 05:40:07 -05:00
Patrice Chalin 621fb34f04
Footer copyright default to site title for authors (#1851) 2024-02-08 18:00:01 -05:00
Patrice Chalin 612f0c56d9
[UG] Refer to Bootstrap 5 doc pages and files (#1844) 2024-02-08 17:58:50 -05:00
Patrice Chalin c074d6830a
Footer streamlining: hide About-link and All-rights text by default (#1849) 2024-02-08 17:31:14 -05:00
Patrice Chalin 03aa74ddb6
CHANGELOG: clarify that blocks/feature no longer adds ellipsis (#1848) 2024-02-08 17:05:11 -05:00
Robert Fekete fe067f3118
Blocks/feature fix (#1503) 2024-02-08 16:36:03 -05:00
Patrice Chalin 3640101576
Heading self-links: more compact, customizable, and reusable (#1831) 2024-02-08 16:06:11 -05:00
Patrice Chalin 29ebb03863
Support date range in footer copyright element (#1821) 2024-02-08 14:07:42 -05:00
Patrice Chalin 797b16d211
Fix repo-links page-meta class names (#1819) 2024-02-07 04:13:00 -05:00
Patrice Chalin f5540b6500
Ensure hamburger isn't underlined, for real (#1833) 2024-02-07 02:16:29 -05:00
Andreas Deininger 2354d19f96
Issue template 'enhancement': Fix error (#1834) 2024-02-06 16:04:47 -05:00
Andreas Deininger bff41bbcf9
infrastructure: add issue templates (#1824) 2024-02-03 19:59:43 -05:00
Andreas Deininger d0cf645cf9
user guide, definition listings of site params: add 'params' context (#1828) 2024-02-03 17:30:57 -05:00
Andreas Deininger 6447dfed9f
user guide, multi-language settings: improve config options (#1830) 2024-02-03 16:27:16 -05:00
Patrice Chalin 82622a211e
[CI] Smoke tests: fix for repo forks, but also disable on push (#1827) 2024-02-03 07:46:19 -05:00
Andreas Deininger 8a32b91feb
Add link to example site (themes.gohugo.io) (#1825) 2024-02-03 06:44:42 -05:00
Andreas Deininger 9c3f91b466
Footer, copyright notice: allow customization of year (#1593) 2024-02-02 17:01:56 -05:00
Patrice Chalin e150a8475c
Blog posts: show page-meta-lastmod (#1791) 2024-02-02 13:36:50 -05:00
Patrice Chalin 1e1279025e
Footer: factor out copyright, and code cleanup (#1817) 2024-02-02 12:54:17 -05:00
Robert Fekete e22aec42bd
Handle svg hero images in blocks/cover shortcode (#1505) 2024-02-02 12:48:10 -05:00
Yann Soubeyrand 93525047f7
layouts: split footer partial in several partials (#1500) 2024-02-02 10:03:44 -05:00
Patrice Chalin 430921b4dd
CHANGELOG updates for mermaid (#1816) 2024-02-02 09:53:03 -05:00
Andreas Deininger 40561ad966
Pull in latest mermaid version while allowing custom versions (#1410) 2024-02-02 09:38:13 -05:00
Patrice Chalin 33aa253c13
Link styles: follow recommended practice and underline by default (#1815) 2024-02-02 09:35:15 -05:00
Severin Neumann e3d83dccf6
Add params to offlineSearch examples (#1771) 2024-02-02 08:33:02 -05:00
Andreas Deininger a4eaf8f3df
Drop AnchorJS in favor of Hugo markdown render hook (#1463) 2024-02-02 08:18:20 -05:00
Patrice Chalin def1d2c89f
[CI] test:all should also check/fix format (#1811) 2024-02-02 06:23:48 -05:00
Patrice Chalin edd2a0cfce
Use cpy-cli for OS-independent file copy (#1810) 2024-02-02 06:00:07 -05:00
Patrice Chalin 5d96fa33bf
CHANGELOG copyedits & pin 0.9.0 as next release & NPM script tweaks (#1809) 2024-02-02 05:38:20 -05:00
Patrice Chalin 435b2e0678
Rework and clean up page-meta-links.html + CHANGELOG entry (#1807) 2024-02-01 16:35:51 -05:00
Patrice Chalin c1cad5f8b7
Whitespace cleanup in page-meta-links.html (#1808) 2024-02-01 10:12:10 -05:00
LisaFC 340cbf753f
Fix links for single language sites (#1744) 2024-02-01 09:26:38 -05:00
Andreas Deininger 58cdd3ae1f
Smoke test: improvements (#1800) 2024-02-01 08:29:51 -05:00
Andreas Deininger 91efe35998
Bump FontAwesome to latest released version 6.5.1 (#1803) 2024-02-01 06:43:02 -05:00
Andreas Deininger d1f6ad618d
Bump dependencies to their latest versions (#1802) 2024-02-01 06:37:13 -05:00
Patrice Chalin d99b473933
[CI] Disable scheduled runs of build and smoke tests (#1798) 2024-01-21 16:51:30 -05:00
Patrice Chalin fe4c06b190
[CI] Smoke test new site from Hugo-module Docsy as well (#1795) 2024-01-20 05:47:03 -05:00
Patrice Chalin d98dced861
[CI] Fix markdown-link-check ignore pattern & NPM link vers update (#1790) 2024-01-19 09:50:03 -05:00
Andreas Deininger 96baa453af
Fix warning: '.File.UniqueID on zero object' (#1007) (#1633) 2024-01-19 09:41:33 -05:00
Patrice Chalin ce52bb0ab1
RSS button: link to XML via RelPermalink (#1786) 2024-01-15 15:26:34 -05:00
Patrice Chalin 068e57b325
Cleanup: drop NPM script that is no longer needed, tweak job names (#1783) 2024-01-13 10:01:54 -05:00
Patrice Chalin e22fc86845
[CI] Run npm test scripts under Linux and Windows (#1778) 2024-01-13 09:09:15 -05:00
Patrice Chalin 91e0815c21
[CI] Add smoke test via GitHub workflow (#1776) 2024-01-13 06:59:02 -05:00
Marcin Ogoń 309053be9f
Typo in polish translation (#1770) 2024-01-11 09:56:21 -05:00
Archit Sharma 6a71096ef3
Added docs.layer5.io on Docsy theme examples (#1752) 2023-12-08 17:55:41 -05:00
Vajrala Venkateswarlu 1092a03bc9
NPM dependencies: Update font-awesome package to include new twitter logo (#1754) 2023-12-08 17:32:49 -05:00
emirhan b021d9db0c
some improvements and additions to i18n tr (#1766) 2023-12-08 17:11:02 -05:00
emirhan 05b323a1f3
add post_view_this to tr i18n (#1764) 2023-12-06 11:02:48 -05:00
Mahé 0d3d631c70
css: fix an issue on `.highlight pre` border radius (#1762) 2023-12-05 20:15:20 -05:00
Patrice Chalin 8f02d7f3aa
Set NPM package version to next unreleased dev & rel-doc tweaks (#1761) 2023-11-30 08:20:55 -05:00
225 changed files with 8725 additions and 2284 deletions

3
.gitattributes vendored Normal file
View File

@ -0,0 +1,3 @@
* text=auto eol=lf
*.cmd text eol=crlf
*.bat text eol=crlf

26
.github/ISSUE_TEMPLATE/bug.md vendored Normal file
View File

@ -0,0 +1,26 @@
---
name: Bug report
labels: [bug, needs-triage]
about: Create a report to help us improve
---
<!-- Describe you environment by answering the questions below. Put your answers after the colon on each line. -->
### Environment
- [ ] Version of Docsy you are using:
- [ ] How are you using Docsy? As a:
- [ ] Hugo module
- [ ] NPM module
- [ ] Git submodule
- [ ] Other:
- [ ] Version of Hugo you are using (output of `hugo version`):
- [ ] OS:
- [ ] Linux
- [ ] macOS
- [ ] Windows
- [ ] Other:
### Problem
<!-- Concisely describe the problem you are seeing, ideally provide steps to reproduce it. -->

9
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@ -0,0 +1,9 @@
blank_issues_enabled: true
contact_links:
- name: SUPPORT, ISSUES, and TROUBLESHOOTING
url: https://github.com/google/docsy/discussions
about:
Please DO NOT use GitHub issues for support requests, instead start a
discussion thread at https://github.com/google/docsy/discussions. Feel
free to open an issue once your problem is confirmed by the docsy
maintainers and/or the docsy community.

7
.github/ISSUE_TEMPLATE/enhancement.md vendored Normal file
View File

@ -0,0 +1,7 @@
---
name: Enhancement proposal
labels: [enhancement, needs-triage]
about: Propose an enhancement or submit a feature request
---
<!-- Tell us about the enhancement or describe your feature wish. Think about if it really belongs in the docsy theme; you may want to discuss it on https://github.com/google/docsy/discussions first. -->

50
.github/workflows/smoke.yaml vendored Normal file
View File

@ -0,0 +1,50 @@
# Smoke test across OSs: build a Docsy-based site from scratch,
# using Docsy as hugo module and fetching Docsy via NPM.
name: smoke
on:
push:
branches: [main]
pull_request:
# schedule: # midnight every day
# - cron: '0 0 * * *'
workflow_dispatch:
jobs:
new-site:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
docsy-src: [NPM, HUGO_MODULE]
env:
BASE_REPO: ${{ github.repository }}
BRANCH: ${{ github.head_ref }}
PR_REPO: ${{ github.event.pull_request.head.repo.full_name }}
SHA: ${{ github.sha }}
# TODO: drop PR testing under Windows because it's too slow?
# if: github.event_name != 'pull_request' && matrix.os != 'windows-latest'
if: github.event_name != 'push' || github.repository == 'google/docsy'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: package.json
- run: tools/install-hugo.sh
shell: bash
- name: Make site (non-PR)
if: github.event_name != 'pull_request'
run: |
mkdir tmp && cd tmp && set -x
../tools/make-site.sh -s ${{ matrix.docsy-src }} -r $BASE_REPO -v $SHA
shell: bash
- name: Make site from PR
if: github.event_name == 'pull_request'
run: |
mkdir tmp && cd tmp && set -x
../tools/make-site.sh -s ${{ matrix.docsy-src }} -r $PR_REPO -v $BRANCH
shell: bash

31
.github/workflows/test.yaml vendored Normal file
View File

@ -0,0 +1,31 @@
# Build Docsy & the User Guide and run all repo checks across OSs.
name: test
on:
push:
branches: [main]
pull_request:
# schedule:
# - cron: '11 0 * * *' # 11 past midnight every day
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: package.json
- run: npm install --omit=optional
- if: runner.os != 'Windows'
run: npm run test:all
- if: runner.os == 'Windows'
run: npm run ci:prepare && npm run cd:docs build && npm run ci:post

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
node_modules/
package-lock.json
/tmp
# Hugo
.hugo_build.lock

View File

@ -1,13 +0,0 @@
{
"ignorePatterns": [
{
"pattern": "^http://localhost"
},
{
"pattern": "^https://badges.netlify.com/api/docsydocs.svg?branch=main"
}
],
"timeout": "3s",
"retryOn429": true,
"aliveStatusCodes": [200, 206]
}

View File

@ -1,5 +0,0 @@
.editorconfig
.gitignore
.nvmrc
.prettierignore
.s3deploy.yml

View File

@ -1,14 +0,0 @@
routes:
- route: "^.+\\.(js|css|svg|ttf)$"
# cache static assets for 20 years
headers:
Cache-Control: "max-age=630720000, no-transform, public"
gzip: true
- route: "^.+\\.(png|jpg)$"
headers:
Cache-Control: "max-age=630720000, no-transform, public"
gzip: true
- route: "^.+\\.(html|xml|json)$"
gzip: true

13
.vscode/cspell.json vendored
View File

@ -2,5 +2,16 @@
{
"version": "0.2",
"caseSensitive": true,
"words": ["Docsy", "shortcode", "shortcodes"]
"words": [
"Docsy",
"errorf",
"hugo",
"relref",
"scrollspy",
"shortcode",
"shortcodes",
"tabpane",
"upvote",
"warnf"
]
}

View File

@ -1,5 +1,5 @@
<!--
cSpell:ignore deining docsy gtag lookandfeel navs
cSpell:ignore deining docsy gitmodules gtag lookandfeel mhchem navs tabpane
-->
# Changelog
@ -11,23 +11,233 @@ notes][releases].
Useful links:
- [Releases] & [tags]. Jump to the [latest] release.
- [23Q4] milestone
- [Milestones]
[23q4]: https://github.com/google/docsy/milestone/9
[latest]: https://github.com/google/docsy/releases/latest
[milestones]: https://github.com/google/docsy/milestones
[releases]: https://github.com/google/docsy/releases
[tags]: https://github.com/google/docsy/tags
## 0.8.0
## 0.12.1 or 0.13.0
For the full list of changes, see the [release][0.8.0] notes.
> **UNRELEASED: this planned version is still under development**
For the full list of changes, see the [0.x.y] release notes.
**Breaking changes**:
- Docsy is packaged as a **single Hugo module** ([#1120]).
- For details, see [Use Docsy as a Hugo Module].
- **Important**: non-Hugo-module projects should read the [Docsy NPM install
side-effect] note.
- **Shortcodes**:
- The alert shortcode has been reworked to address [#906] and [#939]. It can
now be used with Markdown content, and it can contain calls to other
shortcodes. For details, see [Shortcode helpers > alert][] ([#941])
- ...
[#941]: https://github.com/google/docsy/pull/941
[Shortcode helpers > alert]:
https://www.docsy.dev/docs/adding-content/shortcodes/#alert
**New**:
**Other changes**:
[0.x.y]: https://github.com/google/docsy/releases/latest?FIXME=v0.X.Y
## 0.12.0
For the full list of changes, see the [0.12.0] release notes.
**Breaking changes**:
- Renames the default Docsy heading render hook and heading self-link partials.
This is a breaking change only if your project uses this feature. For details,
see [Heading self links][] ([#2223]).
- Relocates and adapts layouts in response to Hugo's [new template system][].
For details, see [Adapt to new template system in Hugo v0.146.0 #2243][#2243].
- **IMPORTANT**: if your project overrides any of the layout files mentioned in
[#2243], then apply the same name changes in your project files. In
particular, note that:
- Taxonomy-related layout files: names have been _swapped_, and `terms.html`
is now singular ([#2257]):
- Renames `_default/taxonomy.html` to `term.html` (singular)
- Renames `_default/terms.html` to `taxonomy.html`
- Renames `layouts/**/content.html` by adding a `_td-` filename prefix
([#2259]).
[#2257]: https://github.com/google/docsy/pull/2257
[#2259]: https://github.com/google/docsy/pull/2259
[new template system]: https://gohugo.io/templates/new-templatesystem-overview/
**Potential breaking changes**:
- Removes shortcode `figure`, hugo's built-in shortcode `figure` can/will be
used instead.
**New**:
- **[Breadcrumb navigation]** support has been enhanced and adjusted:
- You can now disable breadcrumbs for an entire project, or individual pages
or sections by setting `ui.breadcrumb_disable` to true. For details, see
[Breadcrumb navigation][].
- **Blog** pages now also have breadcrumbs by default ([#1788]).
- Index-page single-element breadcrumb lists are hidden by default ([#2160]).
- Support for a [_td-content-after-header.html] page-content render hook, which
can be [content type][] specific ([#2192]). For details, see the [User
Guide][before-page-content].
**Other changes**:
- **Blog** section index page content and title used to be ignored, they are now
displayed ([#1787]). To recover the old behavior use the following style
override: `.td-section.td-blog .td-content { display: none; }`.
- Adds a `comment` shortcode, as a drop-in replacement for the one removed from
Hugo.
[0.12.0]: https://github.com/google/docsy/releases/v0.12.0
[#1787]: https://github.com/google/docsy/issues/1787
[#1788]: https://github.com/google/docsy/issues/1788
[#2160]: https://github.com/google/docsy/pull/2160
[#2192]: https://github.com/google/docsy/pull/2192
[#2223]: https://github.com/google/docsy/pull/2223
[#2243]: https://github.com/google/docsy/pull/2243
[before-page-content]:
https://www.docsy.dev/docs/adding-content/lookandfeel/#before-page-content
[Breadcrumb navigation]:
https://www.docsy.dev/docs/adding-content/navigation/#breadcrumb-navigation
[content type]: https://gohugo.io/quick-reference/glossary/#content-type
[Heading self links]:
https://www.docsy.dev/docs/adding-content/navigation/#heading-self-links
[_td-content-after-header.html]:
https://github.com/google/docsy/blob/main/layouts/_td-content-after-header.html
## 0.11.0
For the full list of changes, see the [0.11.0] release notes.
**New**:
- Support for Right-To-Left (RLT) languages is reintroduced via [Bootstrap's
support for RTL][bs-rtl]. For details, see [Right-to-left languages][rtl].
- The URL to your project's contribution guidelines is configurable. For
details, see [Adding a community page].
- When a section's sidebar entries are truncated because there are more than
[params.ui.sidebar_menu_truncate] section entries, a warning is issued.
[0.11.0]: https://github.com/google/docsy/releases/v0.11.0
[bs-rtl]: https://getbootstrap.com/docs/5.3/getting-started/rtl/
[Adding a community page]:
https://www.docsy.dev/docs/adding-content/content/#adding-a-community-page
[params.ui.sidebar_menu_truncate]:
https://www.docsy.dev/docs/adding-content/navigation/#section-menu-options
[rtl]: https://www.docsy.dev/docs/language/#right-to-left-languages
## 0.10.0
For an introduction to this release, see the [0.10.0 release report]. For the
full list of changes, see the [0.10.0] release notes.
**New**: color themes and dark-mode support! For details, see [Color themes and
dark-mode support][dark-mode].
**Breaking changes**:
- Removes shortcode `card-code` that was [deprecated in 0.7.0](#070); use
shortcode `card` with named parameter `code=true` instead.
- The following SCSS variables are inlined in favor of dark-mode compatible
styling: `$border-color`, `$td-sidebar-tree-root-color`,
`$td-sidebar-bg-color`, `$td-sidebar-border-color` ([#1952])
**Style changes** (potentially breaking):
- The style of various shortcode and elements have been adjusted so that they
are compatible with light/dark mode. For details see, **Important style
changes** in [Color themes and dark-mode support][dark-mode].
[#1952]: https://github.com/google/docsy/pull/1952
[0.10.0]: https://github.com/google/docsy/releases/v0.10.0
[0.10.0 release report]: https://www.docsy.dev/blog/2024/0.10.0/
[dark-mode]:
https://www.docsy.dev/blog/2024/0.10.0/#color-themes-and-dark-mode-support
## 0.9.1
Patch release. For details, see [0.9.1].
[0.9.1]: https://github.com/google/docsy/releases/v0.9.1
## 0.9.0
For an introduction and commentary, see the [0.9.0 release report]. For the full
list of commits, see the [0.9.0] release notes. The most significant changes of
this release are listed next.
**Breaking changes**:
- **[Repository Links]** now work for [multi-language] sites ([#1744]).
For any given page, repository links are now computed from a page's _resolved_
`File` path &mdash; as resolved _through_ mount points, if any. That is, the
path used is the one that refers to the file's actual location on disk, not
it's logical path in Hugo's [union file system].
This is a breaking change for pages of sites that use mounts and
[path_base_for_github_subdir]. Projects will need to adjust the value of
[path_base_for_github_subdir] to be relative to the file's physical location.
- Class names to disable [repository links] were misnamed with a suffix of the
form `--KIND`. The new suffix is `__KIND`. For details, see [Disabling links].
- **Heading self-link** support has been reimplemented and projects must now
explicitly enable the feature. For details, see [Heading self
links][0.9.0:hsl].
**Footer changes**: refactoring, for easier customization, and simplification.
For details concerning all footer changes, see [#1818].
- **Footer layout** has been factored into parts: _left_, _right_, and _center_,
with _copyright_ a subpart of center. For details see [Footer layout]
- **Footer copyright**, supports date-range, and site copyright fallback. For
details, see [Footer copyright].
- **Footer streamlined**: the About-page footer link and All-rights-reserved
text are now hidden by default. For details, see [Footer streamlined].
**Other changes**:
- The latest release of **[Mermaid] resources** are now fetched at build time
([#1410]).
- [Look and feel] updates.
[0.9.0]: https://github.com/google/docsy/releases/v0.9.0
[0.9.0 release report]: https://www.docsy.dev/blog/2024/0.9.0/
[#1410]: https://github.com/google/docsy/pull/1410
[#1744]: https://github.com/google/docsy/pull/1744
[#1818]: https://github.com/google/docsy/pull/1818
[disabling links]:
https://www.docsy.dev/docs/adding-content/repository-links/#disabling-links
[Footer layout]: https://www.docsy.dev/blog/2024/0.9.0/#footer-layout
[Footer copyright]: https://www.docsy.dev/blog/2024/0.9.0/#footer-copyright
[Footer streamlined]: https://www.docsy.dev/blog/2024/0.9.0/#footer-streamlined
[0.9.0:hsl]: https://www.docsy.dev/blog/2024/0.9.0/#heading-self-links
[look and feel]: https://www.docsy.dev/blog/2024/0.9.0/#look-and-feel
[mermaid]:
https://www.docsy.dev/docs/adding-content/diagrams-and-formulae/#diagrams-with-mermaid
[multi-language]: https://www.docsy.dev/docs/language/
[path_base_for_github_subdir]:
https://www.docsy.dev/docs/adding-content/repository-links/#path_base_for_github_subdir-optional
[Repository Links]: https://www.docsy.dev/docs/adding-content/repository-links/
[union file system]:
https://gohugo.io/getting-started/directory-structure/#union-file-system
## 0.8.0
For the full list of changes, see the [0.8.0] release notes.
**Breaking changes**:
- Docsy is packaged as a **single Hugo module** ([#1120]). For details, see [Use
Docsy as a Hugo Module].
- **Important**: non-Hugo-module projects should be aware of the [Docsy NPM
install side-effect]. Also, for guidance on Hugo-reported "failed to load
modules" error, see [Docsy as an NPM package].
- **Page feedback**, or [User feedback]:
- In support of projects configuring analytics outside of Docsy, feedback
functionality is enabled regardless of whether
@ -45,7 +255,9 @@ For the full list of changes, see the [release][0.8.0] notes.
[#1385]: https://github.com/google/docsy/issues/1385
[#1726]: https://github.com/google/docsy/pull/1726
[#1727]: https://github.com/google/docsy/pull/1727
[0.8.0]: https://github.com/google/docsy/releases/latest?fixme=v0.8.0
[0.8.0]: https://github.com/google/docsy/releases/v0.8.0
[Docsy as an NPM package]:
https://docsy.dev/docs/get-started/other-options/#option-3-docsy-as-an-npm-package
[Docsy NPM install side-effect]:
https://docsy.dev/docs/get-started/other-options/#docsy-npm-install-side-effect
[Use Docsy as a Hugo Module]:
@ -55,7 +267,7 @@ For the full list of changes, see the [release][0.8.0] notes.
## 0.7.2
For the full list of changes, see the [release][0.7.2] notes. We mention some
For the full list of changes, see the [0.7.2] release notes. We mention some
noteworthy changes here:
- **Algolia**
@ -84,7 +296,7 @@ noteworthy changes here:
## 0.7.1
For the full list of changes, see the [release][0.7.1] notes.
For the full list of changes, see the [0.7.1] release notes.
Followup changes to **Bootstrap (BS) 5.2 upgrade** ([#470]):
@ -99,7 +311,7 @@ Followup changes to **Bootstrap (BS) 5.2 upgrade** ([#470]):
## 0.7.0
For the full list of changes, see the [release][0.7.0] notes.
For the full list of changes, see the [0.7.0] release notes.
**New**:
@ -121,9 +333,10 @@ For the full list of changes, see the [release][0.7.0] notes.
- **Shortcodes**:
- Now using Hugo's native support for processing HTML & markdown, not file
extension testing. ([#906])
- Dropped support for pre-Hugo-0.54.x behavior of `{{% %}}`. ([#939])
- Dropped support for pre-Hugo-0.54.x behavior of [shortcodes with markdown],
`{{%/*...*/%}}`. ([#939])
- `blocks/section`: **default** and accepted values of the `type` argument
have changed! For details see [blocks/section] ([#1472]).
have changed! For details, see [blocks/section] ([#1472]).
- **Card shortcodes** ([#1376])]:
- Renamed CSS class `td-card-deck` to `td-card-group`.
- `card`, `card-code`: markup of inner content (HTML/markdown) now depends
@ -134,6 +347,8 @@ For the full list of changes, see the [release][0.7.0] notes.
[chroma-docsy]:
https://www.docsy.dev/docs/adding-content/lookandfeel/#code-highlighting-with-chroma
[shortcodes with markdown]:
https://gohugo.io/content-management/shortcodes/#shortcodes-with-markdown
- **Detection of draw.io diagrams** is now **disabled** by default [#1185]
@ -162,7 +377,7 @@ For the full list of changes, see the [release][0.7.0] notes.
## 0.6.0
For the full list of changes, see the [release][0.6.0] notes.
For the full list of changes, see the [0.6.0] release notes.
With this release we declare a feature freeze while we migrate to the newest
Bootstrap version. See [the announcement][bs-announcement] for more information.
@ -183,7 +398,7 @@ Bootstrap version. See [the announcement][bs-announcement] for more information.
## 0.5.1
For the full list of changes, see the [release][0.5.1] notes. **BREAKING
For the full list of changes, see the [0.5.1] release notes. **BREAKING
CHANGES** are documented below.
**After you update** your project's Docsy:
@ -240,7 +455,7 @@ Unpublished.
## 0.4.0
For the full list of changes, see the [release][0.4.0] notes. Potential
For the full list of changes, see the [0.4.0] release notes. Potential
**BREAKING CHANGES** are documented below.
**After you update** your project's Docsy, run `npm install`.
@ -292,11 +507,11 @@ Proceed as usual to build or serve your site.
[hugo module]: https://www.docsy.dev/docs/get-started/docsy-as-module/
[other docsy setups]: https://www.docsy.dev/docs/get-started/other-options/
[prepare]:
https://docs.npmjs.com/cli/v8/using-npm/scripts#prepare-and-prepublish
https://docs.npmjs.com/cli/v10/using-npm/scripts#prepare-and-prepublish
## 0.3.0
For the full list of changes, see the [release][0.3.0] notes.
For the full list of changes, see the [0.3.0] release notes.
**Breaking changes**:
@ -315,7 +530,7 @@ For the full list of changes, see the [release][0.3.0] notes.
## 0.2.0
For the full list of changes, see the [release][0.2.0] notes.
For the full list of changes, see the [0.2.0] release notes.
**New**:
@ -332,11 +547,14 @@ For the full list of changes, see the [release][0.2.0] notes.
[0.2.0]: https://github.com/google/docsy/releases/v0.2.0
[hugo modules]: https://gohugo.io/hugo-modules/
<!-- SECTION TEMPLATE ------------------------------------------------------
<!-- ENTRY TEMPLATE ------------------------------------------------------
## 0.X.Y - next planned release (unpublished yet)
```
## 0.X.Y
For the full list of changes, see the [release][0.x.y] notes.
> **UNRELEASED: this planned version is still under development**
For the full list of changes, see the [0.x.y] release notes.
**Breaking changes**:
@ -346,6 +564,7 @@ For the full list of changes, see the [release][0.x.y] notes.
**Other changes**:
[0.x.y]: https://github.com/google/docsy/releases/v0.X.Y-FIXME
[0.x.y]: https://github.com/google/docsy/releases/latest?FIXME=v0.X.Y
```
---------------------------------------------------------------------------->

View File

@ -46,31 +46,39 @@ These notes are WIP for creating a **release (v0.X.Y)** from a local copy of the
repo.
1. **Change directory** to your local Docsy repo.
2. **Create or update a [CHANGELOG](CHANGELOG.md) entry** for v0.X.Y. The
section should provide a brief summary of breaking changes using the section
template at the end of the file. (Note that change details are autogenerated
by GitHub in a later step.)
2. **Create or update a [CHANGELOG] entry** for v0.X.Y. The section should
provide a brief summary of breaking changes using the section template at
the end of the file. (Note that change details are autogenerated by GitHub
in a later step.)
3. **Update Docsy version** to v0.X.Y for:
- `version` key in [package.json](package.json)
- `version` key in [userguide/hugo.yaml][]
4. Run `npm install` to have vendor assets and [go.mod](go.mod) updated for
dependencies.
- `version` key in [package.json]
- `version` key in [userguide/hugo.yaml]
4. Run `npm run ci:prepare` to ensure that vendor assets and [go.mod]
dependencies are up-to-date.
5. **Submit a PR with your changes**, using a title like "Release v0.X.Y
preparation".
6. **Get PR approved and merged**.
7. **Pull in `main`** to get the last PR.
8. **Ensure** that you're:
6. **Test the PR** branch from selected sites, and push any required
adjustments.
- If the test site uses Docsy as a Git submodule:
```console
$ cd themes/docs
$ git fetch
$ git switch -t repo/branch-name # e.g. chalin/chalin-im-0.9.1-2024-02-16
```
7. **Get PR approved and merged**.
8. **Pull in `main`** to get the last PR.
9. **Ensure** that you're:
- On the default branch, `main`
- At the commit that you want to tag as v0.X.Y
9. **Create tags** for v0.X.Y:
10. **Create tags** for v0.X.Y:
```sh
REL=v0.X.Y
git tag $REL
```
10. **Push the new tags** to the main repo, which is named `upstream` in the
following example:
11. **Push the new tags** to the main remote (`origin` or `upstream` depending
on your setup) as well as any secondary remotes, if any:
```console
$ git push upstream $REL
@ -78,7 +86,7 @@ repo.
* [new tag] v0.X.Y -> v0.X.Y
```
11. **[Draft a new release][]** using GitHub web; fill in the fields as follows:
12. **[Draft a new release][]** using GitHub web; fill in the fields as follows:
- From the **release/tag dropdown**: Select the new release tag that you
just pushed, v0.X.Y.
@ -91,16 +99,15 @@ repo.
```markdown
## Release summary
See, https://github.com/google/docsy/blob/main/CHANGELOG.md#0XY
- [Release report](https://www.docsy.dev/blog/2024/0.X.Y/)
- [CHANGELOG](https://github.com/google/docsy/blob/main/CHANGELOG.md#0XY)
```
- Remove the "New contributors" autogenerated text (if present) since we
don't publish that as part of our release notes.
- Select **Create a discussion for this release**.
12. **Publish the release**: click _Publish release_.
13. Test the release with a downstream project, such as [docsy-example].
14. If you find issues, determine whether they need to be fixed immediately. If
13. **Publish the release**: click _Publish release_.
14. Test the release with a downstream project, such as [docsy-example].
15. If you find issues, determine whether they need to be fixed immediately. If
so, get fixes submitted, reviewed and approved. Then publish a dot release:
go back to step 1.
@ -110,13 +117,22 @@ Assuming that Docsy release v0.X.Y has been successfully deployed and use by at
least one downstream project, then perform the following actions before any
further changes are merged into the default branch:
1. Set `version` in [package.json](package.json) to the next planned (or the
next dot) release with a dev suffix, such as `v0.X.Z-dev.0-unreleased`.
2. **Submit a PR with your changes**, using a title like "Set NPM package
version to next unreleased dev".
3. **Get PR approved and merged**.
1. Set `version` in [package.json] to the next planned (or the next dot) release
with a dev suffix, such as `v0.X.Z-dev-unreleased`.
2. In the [CHANGELOG]:
- **Create a new entry** for the next release by copying the ENTRY TEMPLATE
at the end of the file.
- **Pin the 0.X.Y release URL**, which ends with `latest?FIXME=...`, to the
v0.X.Y release at `https://github.com/google/docsy/releases/v0.x.y`.
3. **Submit a PR with your changes**, using a title like "Set NPM package
version to next unreleased dev version".
4. **Get PR approved and merged**.
[CHANGELOG]: https://github.com/google/docsy/blob/main/CHANGELOG.md
[contribution guidelines]: https://www.docsy.dev/docs/contribution-guidelines/
[Draft a new release]: https://github.com/google/docsy/releases/new
[docsy-example]: https://github.com/google/docsy-example
[userguide/hugo.yaml]: userguide/hugo.yaml
[Draft a new release]: https://github.com/google/docsy/releases/new
[go.mod]: https://github.com/google/docsy/blob/main/go.mod
[package.json]: https://github.com/google/docsy/blob/main/package.json
[userguide/hugo.yaml]:
https://github.com/google/docsy/blob/main/userguide/hugo.yaml

View File

@ -1,12 +1,7 @@
# Docsy
[![Project status: active The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![Project releases](https://img.shields.io/github/release/google/docsy)](https://github.com/google/docsy/releases)
[![Project build Status](https://badges.netlify.com/api/docsydocs.svg?branch=main)](https://app.netlify.com/sites/docsydocs/deploys)
[![Project contributors](https://img.shields.io/github/contributors/google/docsy)](https://github.com/google/docsy/graphs/contributors)
[![Project license](https://img.shields.io/github/license/google/docsy)](https://github.com/google/docsy/blob/main/LICENSE)
## 🚧 WARNING 🚧 : `main` is under development and potentially unstable! Use official Docsy [releases].
> **🚧 WARNING 🚧 : `main` is under development and potentially unstable! Use
> official Docsy [releases].**
Docsy is a [Hugo](https://gohugo.io) theme for technical documentation sets,
providing simple navigation, site structure, and more.
@ -42,7 +37,7 @@ The following are basic prerequisites for using Docsy in your site:
Any additional prerequisites depend on the
[installation option](https://www.docsy.dev/docs/get-started/#installation-options)
you choose. We recommend using Docsy as a Hugo module, which requires that you
have the `go` language installed in addition to Hugo and PostCSS.
have the Go language installed in addition to Hugo and PostCSS.
For complete prerequisites and instructions, see our
[Get started guides](https://www.docsy.dev/docs/get-started/).
@ -89,14 +84,14 @@ npm run serve
## Contributing
Read [CONTRIBUTING.md] for details on our [code of conduct], and the process for
submitting pull requests to us. Thank you to all past, present, and future
For details on our [code of conduct] and the process for submitting pull
requests, see [CONTRIBUTING.md]. Thank you to all past, present, and future
[contributors]!
## License
This project is licensed under the Apache License 2.0 - see the
[LICENSE.md](https://github.com/google/docsy/blob/main/LICENSE) file for details
This project is licensed under the Apache License 2.0 - see
[LICENSE](https://github.com/google/docsy/blob/main/LICENSE) for details
[code of conduct]:
https://github.com/google/.github/blob/master/CODE_OF_CONDUCT.md

View File

@ -1,4 +1,4 @@
// stylelint-disable property-blacklist, scss/dollar-variable-default
// stylelint-disable scss/dimension-no-non-numeric-values
// SCSS RFS mixin
//
@ -154,8 +154,7 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
&.enable-rfs {
@content;
}
}
@else {
} @else {
@content;
}
}
@ -168,7 +167,7 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
@content;
}
@include _rfs-media-query {
@include _rfs-media-query () {
.enable-rfs &,
&.enable-rfs {
@content;
@ -182,7 +181,7 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
@content;
}
}
@include _rfs-media-query {
@include _rfs-media-query () {
@content;
}
}
@ -193,12 +192,12 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
// Convert to list
$values: if(type-of($values) != list, ($values,), $values);
$val: '';
$val: "";
// Loop over each value and calculate value
@each $value in $values {
@if $value == 0 {
$val: $val + ' 0';
$val: $val + " 0";
}
@else {
// Cache $value unit
@ -206,15 +205,14 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
@if $unit == px {
// Convert to rem if needed
$val: $val + ' ' + if($rfs-unit == rem, #{divide($value, $value * 0 + $rfs-rem-value)}rem, $value);
$val: $val + " " + if($rfs-unit == rem, #{divide($value, $value * 0 + $rfs-rem-value)}rem, $value);
}
@else if $unit == rem {
// Convert to px if needed
$val: $val + ' ' + if($rfs-unit == px, #{divide($value, $value * 0 + 1) * $rfs-rem-value}px, $value);
}
@else {
$val: $val + " " + if($rfs-unit == px, #{divide($value, $value * 0 + 1) * $rfs-rem-value}px, $value);
} @else {
// If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
$val: $val + ' ' + $value;
$val: $val + " " + $value;
}
}
}
@ -228,30 +226,26 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
// Convert to list
$values: if(type-of($values) != list, ($values,), $values);
$val: '';
$val: "";
// Loop over each value and calculate value
@each $value in $values {
@if $value == 0 {
$val: $val + ' 0';
}
@else {
$val: $val + " 0";
} @else {
// Cache $value unit
$unit: if(type-of($value) == "number", unit($value), false);
// If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
@if not $unit or $unit != px and $unit != rem {
$val: $val + ' ' + $value;
}
@else {
$val: $val + " " + $value;
} @else {
// Remove unit from $value for calculations
$value: divide($value, $value * 0 + if($unit == px, 1, divide(1, $rfs-rem-value)));
// Only add the media query if the value is greater than the minimum value
@if abs($value) <= $rfs-base-value or not $enable-rfs {
$val: $val + ' ' + if($rfs-unit == rem, #{divide($value, $rfs-rem-value)}rem, #{$value}px);
$val: $val + " " + if($rfs-unit == rem, #{divide($value, $rfs-rem-value)}rem, #{$value}px);
}
@else {
// Calculate the minimum value
@ -273,7 +267,7 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
$variable-width: #{divide($value-diff * 100, $rfs-breakpoint)}#{$variable-unit};
// Return the calculated value
$val: $val + ' calc(' + $min-width + if($value < 0, ' - ', ' + ') + $variable-width + ')';
$val: $val + " calc(" + $min-width + if($value < 0, " - ", " + ") + $variable-width + ")";
}
}
}
@ -287,22 +281,22 @@ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height
@mixin rfs($values, $property: font-size) {
@if $values != null {
$val: rfs-value($values);
$fluidVal: rfs-fluid-value($values);
$fluid-val: rfs-fluid-value($values);
// Do not print the media query if responsive & non-responsive values are the same
@if $val == $fluidVal {
@if $val == $fluid-val {
#{$property}: $val;
}
@else {
@include _rfs-rule {
#{$property}: if($rfs-mode == max-media-query, $val, $fluidVal);
@include _rfs-rule () {
#{$property}: if($rfs-mode == max-media-query, $val, $fluid-val);
// Include safari iframe resize fix if needed
min-width: if($rfs-safari-iframe-resize-bug-fix, (0 * 1vw), null);
}
@include _rfs-media-query-rule {
#{$property}: if($rfs-mode == max-media-query, $fluidVal, $val);
@include _rfs-media-query-rule () {
#{$property}: if($rfs-mode == max-media-query, $fluid-val, $val);
}
}
}

View File

@ -1,49 +0,0 @@
/*
* Copyright 2018 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
(function ($) {
'use strict';
// Headers' anchor link that shows on hover
$(function () {
// append anchor links to headings in markdown.
var article = document.getElementsByTagName('main')[0];
if (!article) {
return;
}
var headings = article.querySelectorAll('h1, h2, h3, h4, h5, h6');
headings.forEach(function (heading) {
if (heading.id) {
var a = document.createElement('a');
// set visibility: hidden, not display: none to avoid layout change
a.style.visibility = 'hidden';
// [a11y] hide this from screen readers, etc..
a.setAttribute('aria-hidden', 'true');
// material insert_link icon in svg format
a.innerHTML = ' <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>';
a.href = '#' + heading.id;
heading.insertAdjacentElement('beforeend', a);
heading.addEventListener('mouseenter', function () {
a.style.visibility = 'initial';
});
heading.addEventListener('mouseleave', function () {
a.style.visibility = 'hidden';
});
}
});
});
}(jQuery));

View File

@ -19,7 +19,6 @@ for (let index = 0; index < codeListings.length; index++) {
'fas',
'fa-copy',
'btn',
'btn-dark',
'btn-sm',
'td-click-to-copy'
);

87
assets/js/dark-mode.js Normal file
View File

@ -0,0 +1,87 @@
/*!
* This is a Docsy-adapted version of https://github.com/twbs/examples/blob/main/color-modes/js/color-modes.js.
*
* Original header:
*
* Color mode toggler for Bootstrap's docs (https://getbootstrap.com/)
* Copyright 2011-2024 The Bootstrap Authors
* Licensed under the Creative Commons Attribution 3.0 Unported License.
*/
(() => {
'use strict'
const themeKey = 'td-color-theme'
const getStoredTheme = () => localStorage.getItem(themeKey)
const setStoredTheme = theme => localStorage.setItem(themeKey, theme)
const getPreferredTheme = () => {
const storedTheme = getStoredTheme()
if (storedTheme) {
return storedTheme
}
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'
}
const setTheme = theme => {
if (theme === 'auto') {
document.documentElement.setAttribute('data-bs-theme', (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'))
} else {
document.documentElement.setAttribute('data-bs-theme', theme)
}
}
setTheme(getPreferredTheme())
const showActiveTheme = (theme, focus = false) => {
const themeSwitcher = document.querySelector('#bd-theme')
if (!themeSwitcher) {
return
}
const themeSwitcherText = document.querySelector('#bd-theme-text')
const activeThemeIcon = document.querySelector('.theme-icon-active use')
const btnToActive = document.querySelector(`[data-bs-theme-value="${theme}"]`)
const svgOfActiveBtn = btnToActive.querySelector('svg use').getAttribute('href')
document.querySelectorAll('[data-bs-theme-value]').forEach(element => {
element.classList.remove('active')
element.setAttribute('aria-pressed', 'false')
})
btnToActive.classList.add('active')
btnToActive.setAttribute('aria-pressed', 'true')
activeThemeIcon.setAttribute('href', svgOfActiveBtn)
if (themeSwitcherText) {
const themeSwitcherLabel = `${themeSwitcherText.textContent} (${btnToActive.dataset.bsThemeValue})`
themeSwitcher.setAttribute('aria-label', themeSwitcherLabel)
}
if (focus) {
themeSwitcher.focus()
}
}
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => {
const storedTheme = getStoredTheme()
if (storedTheme !== 'light' && storedTheme !== 'dark') {
setTheme(getPreferredTheme())
}
})
window.addEventListener('DOMContentLoaded', () => {
showActiveTheme(getPreferredTheme())
document.querySelectorAll('[data-bs-theme-value]')
.forEach(toggle => {
toggle.addEventListener('click', () => {
const theme = toggle.getAttribute('data-bs-theme-value')
setStoredTheme(theme)
setTheme(theme)
showActiveTheme(theme, true)
})
})
})
})()

View File

@ -1,41 +0,0 @@
(function($) {
var needMermaid = false;
{{ if ge hugo.Version "0.93.0" -}}
if ($('.mermaid').length > 0) {
needMermaid = true;
};
{{ else -}}
$('.language-mermaid').parent().replaceWith(function() {
needMermaid = true;
return $('<pre class="mermaid">').text($(this).text());
});
{{ end -}}
if (!needMermaid) {
mermaid.initialize({startOnLoad: false});
return;
}
var params = {{ .Site.Params.mermaid | jsonify | safeJS }};
// site params are stored with lowercase keys; lookup correct casing
// from Mermaid default config.
var norm = function(defaultConfig, params) {
var result = {};
for (const key in defaultConfig) {
const keyLower = key.toLowerCase();
if (defaultConfig.hasOwnProperty(key) && params.hasOwnProperty(keyLower)) {
if (typeof defaultConfig[key] === "object") {
result[key] = norm(defaultConfig[key], params[keyLower]);
} else {
result[key] = params[keyLower];
}
}
}
return result;
};
var settings = norm(mermaid.mermaidAPI.defaultConfig, params);
settings.startOnLoad = true;
mermaid.initialize(settings);
})(jQuery);

View File

@ -145,7 +145,7 @@
const $entry = $('<div>').addClass('mt-4');
$entry.append(
$('<small>').addClass('d-block text-muted').text(r.ref)
$('<small>').addClass('d-block text-body-secondary').text(r.ref)
);
$entry.append(

View File

@ -2,16 +2,19 @@
.alert {
font-weight: $font-weight-medium;
background: $white;
color: inherit;
border-radius: 0;
:last-child {
margin-bottom: 0;
}
.alert-heading {
color: var(--bs-alert-link-color);
}
@each $color, $value in $theme-colors {
&-#{$color} {
& .alert-heading {
color: $value;
}
border-style: solid;
border-color: $value;
border-width: 0 0 0 4px;

View File

@ -116,3 +116,21 @@
@each $color, $value in $grays {
@include box-variant(".td-box", $color, $value);
}
// Single dark-mode compatibility override for white boxes:
@include color-mode(dark) {
.td-box--white {
color: var(--bs-body-color);
background-color: var(--bs-body-bg);
p > a, span > a {
color: var(--bs-link-color);
&:focus,
&:hover {
color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
}
}
.td-arrow-down::before {
border-color: var(--bs-body-bg) transparent transparent transparent;
}
}
}

View File

@ -2,7 +2,11 @@
.td-breadcrumbs {
@media print {
display: none !important;
display: none;
}
&__single {
display: none;
}
.breadcrumb {

View File

@ -1,10 +1,12 @@
// Code formatting.
@include color-mode(dark, true) {
--td-pre-bg: #{adjust-color($gray-900, $lightness: -2.5%)};
}
.td-content {
// Highlighted code.
.highlight {
@extend .card;
margin: 2rem 0;
padding: 0;
position: relative;
@ -17,26 +19,28 @@
pre {
margin: 0;
padding: 1rem;
border-radius: inherit;
// Default click-to-copy button
button.td-click-to-copy {
position: absolute;
color: $gray-400;
border-radius: 3px;
color: var(--bs-tertiary-color);
border-width: 0;
background-color: inherit;
box-shadow: 1px 1px $gray-400;
background-color: transparent;
background-image: none;
--bs-btn-box-shadow: 0;
padding: var(--bs-btn-padding-y) calc(var(--bs-btn-padding-x) / 2);
right: 4px;
top: 2px;
&:hover {
color: $dark;
background-color: $gray-400;
color: var(--bs-secondary-color);
background-color: var(--bs-dark-bg-subtle);
}
&:active {
color: $dark;
background-color: $gray-400;
color: var(--bs-secondary-color);
background-color: var(--bs-dark-bg-subtle);
transform: translateY(2px);
}
}
@ -52,7 +56,7 @@
margin: 0;
font-size: 85%;
word-break: normal;
background-color: rgba($black, 0.05);
background-color: var(--td-pre-bg);
border-radius: $border-radius;
br {
@ -63,7 +67,9 @@
// Code blocks
pre {
word-wrap: normal;
background-color: $gray-100;
background-color: var(--td-pre-bg);
border: solid var(--bs-border-color);
border-width: 1px;
padding: $spacer;
> code {

View File

@ -8,7 +8,7 @@
p,
li,
td {
font-weight: $font-weight-body-text;
font-weight: $td-font-weight-body-text;
}
> h1 {
@ -47,8 +47,8 @@
blockquote {
padding: 0 0 0 1rem;
margin-bottom: $spacer;
color: $gray-600;
border-left: 6px solid $secondary;
color: var(--bs-secondary-color);
border-left: 6px solid var(--bs-primary);
}
ul li,
@ -94,3 +94,27 @@
font-size: 3rem;
}
}
.td-heading-self-link {
&::before {
content: '#';
}
font-size: 90%;
padding-left: 0.25em;
text-decoration: none;
visibility: hidden;
// Always visible on touch devices and small screens
@media (hover: none) and (pointer: coarse),
(max-width: map-get($grid-breakpoints, sm)) {
visibility: visible;
}
}
@for $i from 1 through 6 {
h#{$i}:hover > .td-heading-self-link {
visibility: visible;
}
}

View File

@ -23,7 +23,7 @@ div.drawioframe {
height: 100%;
width: 100%;
top: 0;
left: 0px;
left: 0;
z-index: 1000;
background: #000b;
border: 0;

View File

@ -1,6 +1,7 @@
//
// Main navbar
//
// cSpell:ignore onscroll
.td-navbar-cover {
@include media-breakpoint-up(md) {
@ -57,7 +58,7 @@
// For .td-search__input styling, see _search.scss
.dropdown {
min-width: 100px;
min-width: 50px;
}
@include media-breakpoint-up(md) {
@ -91,6 +92,22 @@
overflow-x: auto;
}
}
.td-light-dark-menu {
.bi {
// Adapted from: https://github.com/twbs/bootstrap/blob/main/site/layouts/_default/examples.html
width: 1em;
height: 1em;
vertical-align: -.125em;
fill: currentcolor;
}
&.dropdown {
@include media-breakpoint-down(lg) {
position: unset;
}
}
}
}
// Icons
@ -98,7 +115,7 @@
li i {
padding-right: 0.5em;
&:before {
&::before {
display: inline-block;
text-align: center;
min-width: 1em;
@ -111,13 +128,13 @@
border: 0;
font-weight: inherit;
&:before {
&::before {
display: inline-block;
font-style: normal;
font-variant: normal;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
font-family: $font-awesome-font-name;
font-family: $td-font-awesome-font-name;
font-weight: 900;
content: "\f0d9";
padding-left: 0.5em;
@ -166,13 +183,13 @@ nav.foldable-nav {
padding-left: 1.5em;
}
.ul-1 .with-child > label:before {
.ul-1 .with-child > label::before {
display: inline-block;
font-style: normal;
font-variant: normal;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
font-family: $font-awesome-font-name;
font-family: $td-font-awesome-font-name;
font-weight: 900;
content: "\f0da";
position: absolute;
@ -180,15 +197,15 @@ nav.foldable-nav {
padding-left: 0.4em;
padding-right: 0.4em;
font-size: 1em;
color: $gray-900;
color: var(--bs-secondary-color);
transition: all 0.5s;
&:hover {
transform: rotate(90deg);
}
}
.ul-1 .with-child > input:checked ~ label:before {
color: $primary;
.ul-1 .with-child > input:checked ~ label::before {
color: var(--bs-secondary-color);
transform: rotate(90deg);
transition: transform 0.5s;
}
@ -200,13 +217,13 @@ nav.foldable-nav {
@media (hover: hover) and (pointer: fine) {
nav.foldable-nav {
.ul-1 .with-child > label:hover:before {
color: $primary;
.ul-1 .with-child > label:hover::before {
color: var(--bs-link-color);
transition: color 0.3s;
}
.ul-1 .with-child > input:checked ~ label:hover:before {
color: $primary;
.ul-1 .with-child > input:checked ~ label:hover::before {
color: var(--bs-link-color);
transition: color 0.3s;
}
}

View File

@ -1,16 +1,24 @@
.pageinfo {
font-weight: $font-weight-medium;
background: $gray-100;
background: var(--bs-alert-bg);
color: inherit;
border-radius: 0;
margin: 2rem;
margin: 2rem auto;
padding: 1.5rem;
padding-bottom: 0.5rem;
@each $color, $value in $theme-colors {
&-#{$color} {
border-style: solid;
border-color: $value;
@extend .alert-#{$color};
border-width: 0;
}
}
}
.td-page-meta {
&__lastmod {
@extend .text-body-secondary;
@extend .border-top;
margin-top: map-get($spacers, 5) !important;
padding-top: map-get($spacers, 3) !important;
}
}

View File

@ -19,7 +19,7 @@
// Click-through to the underlying input.
pointer-events: none;
&:before {
&::before {
@extend .fa;
content: fa-content($fa-var-search);
}
@ -27,7 +27,7 @@
// Styling adjustments for the navbar
@at-root {
.td-navbar & {
color: $navbar-dark-color;
color: inherit;
}
}
}
@ -44,17 +44,17 @@
&.form-control:focus {
border-color: tint-color($primary, 95%);
box-shadow: 0 0 0 2px tint-color($primary, 40%);
color: inherit;
color: var(--bs-body-color);
}
// Styling adjustments for the navbar
@at-root {
.td-navbar & {
border: none;
color: $navbar-dark-color;
color: inherit;
@include placeholder {
color: $navbar-dark-color;
color: inherit;
}
}
}
@ -67,7 +67,7 @@
}
.td-search-input {
text-indent: 0px;
text-indent: 0;
}
}
@ -114,7 +114,7 @@
// cursor: pointer;
float: right;
&:after {
&::after {
@extend .fas;
content: fa-content($fa-var-times);
}

View File

@ -2,7 +2,9 @@
// Right side toc
//
.td-sidebar-toc {
border-left: 1px solid $border-color;
@include link-decoration;
border-left: 1px solid var(--bs-border-color);
@supports (position: sticky) {
position: sticky;
@ -15,16 +17,19 @@
padding-top: 0.75rem;
padding-bottom: 1.5rem;
vertical-align: top;
}
.td-page-meta {
a {
.td-page-meta a {
display: block;
font-weight: $font-weight-medium;
}
}
.td-toc {
$toc-padding-base: 1rem;
$toc-padding-increment: 0.5rem; // for TOC entry nesting
margin-top: 1rem;
a {
display: block;
font-weight: $font-weight-light;
@ -36,22 +41,48 @@
display: block;
}
li li {
margin-left: 0.5rem;
> .toc-title {
font-weight: $font-weight-bold;
color: var(--bs-secondary-color);
border-bottom: 1px solid var(--bs-tertiary-color);
padding-bottom: 0.5rem;
margin-bottom: 0.5rem;
}
#TableOfContents {
// Hugo's ToC is a mouthful, this can be used to style the top level h2 entries.
> ul > li > ul > li > a {
}
margin-left: -0.75rem;
a {
color: $gray-600;
margin-left: 0;
padding-left: $toc-padding-base;
text-decoration: none;
border-left: .125rem solid transparent;
transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out;
color: var(--bs-secondary-color);
&:hover {
color: $blue;
text-decoration: none;
&.active {
color: var(--bs-primary);
border-left-color: var(--bs-primary);
background-color: var(--bs-secondary-bg-subtle);
}
&:focus,
&:hover {
color: initial;
}
}
ul ul a {
padding-left: $toc-padding-base + $toc-padding-increment;
}
ul ul ul a {
padding-left: $toc-padding-base + ($toc-padding-increment * 2);
}
ul ul ul ul a {
padding-left: $toc-padding-base + ($toc-padding-increment * 3);
}
ul ul ul ul ul a {
padding-left: $toc-padding-base + ($toc-padding-increment * 4);
}
}

View File

@ -39,7 +39,8 @@
list-style: none;
}
&.ul-0, ul {
&.ul-0,
ul {
padding: 0;
margin: 0;
}
@ -62,7 +63,7 @@
}
a {
color: $gray-900;
color: var(--bs-secondary-color);
}
}
@ -71,15 +72,15 @@
padding-bottom: 0.375rem;
&__page {
color: $gray-700;
color: var(--bs-body-color);
font-weight: $font-weight-light;
}
}
a {
&:focus,
&:hover {
color: $blue;
text-decoration: none;
color: var(--bs-link-color);
}
&.active {
@ -87,14 +88,9 @@
}
}
.dropdown {
a {
color: $gray-700;
}
.nav-link {
padding: 0 0 1rem;
}
.dropdown .nav-link {
padding-left: 1.5rem;
margin-bottom: 0.5rem;
}
& > .td-sidebar-nav__section {
@ -104,7 +100,7 @@
li i {
// Layout of icons
padding-right: 0.5em;
&:before {
&::before {
display: inline-block;
text-align: center;
min-width: 1em;
@ -113,25 +109,25 @@
.td-sidebar-link.tree-root {
font-weight: $font-weight-bold;
color: $td-sidebar-tree-root-color;
border-bottom: 1px $td-sidebar-tree-root-color solid;
border-bottom: 1px solid var(--bs-tertiary-color);
margin-bottom: 1rem;
}
}
.td-sidebar {
@include link-decoration;
@include media-breakpoint-up(md) {
padding-top: 4rem;
background-color: $td-sidebar-bg-color;
padding-right: 1rem;
border-right: 1px solid $td-sidebar-border-color;
border-right: 1px solid var(--bs-border-color);
}
padding-bottom: 1rem;
&__toggle {
line-height: 1;
color: $gray-900;
color: var(--bs-body-color);
margin: 1rem;
}

View File

@ -24,9 +24,9 @@
display: inline-block;
width: 100%;
font-size: 1rem;
font-weight: 700;
color: $primary;
border-bottom: 1px $primary solid;
font-weight: $font-weight-bold;
color: var(--bs-primary-text-emphasis);
border-bottom: 1px solid var(--bs-tertiary-color);
margin-bottom: 1em;
padding-bottom: 0.375rem;
margin-top: 1em;
@ -105,14 +105,14 @@
margin-left: 0.6em;
text-align: center;
border-radius: 1em;
background-color: $white;
background-color: var(--bs-body-bg);
}
.taxonomy-term {
background: $gray-200;
background: var(--bs-secondary-bg);
border-width: 0;
border-radius: 0 3px 3px 0;
color: $gray-600;
color: var(--bs-body-color);
display: inline-block;
font-size: 1em;
line-height: 1.5em;
@ -127,11 +127,11 @@
clip-path: polygon(100% 0, 100% 100%, 0.8em 100%, 0 50%, 0.8em 0);
&:hover {
background-color: $primary;
color: $white;
background-color: var(--bs-primary-bg-subtle);
color: var(--bs-body-color-dark);
.taxonomy-count {
color: $dark !important;
color: var(--bs-body-color-dark);
}
}
@ -203,7 +203,7 @@
font-variant: normal;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
font-family: $font-awesome-font-name;
font-family: $td-font-awesome-font-name;
// font-weight: 900;
padding-right: 0.5em;
font-size: 2em;
@ -288,24 +288,24 @@
margin-bottom: 1.5rem;
}
.article-teaser.article-type-docs h3 a:before {
.article-teaser.article-type-docs h3 a::before {
display: inline-block;
font-style: normal;
font-variant: normal;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
font-family: $font-awesome-font-name;
font-family: $td-font-awesome-font-name;
content: "\f02d";
padding-right: 0.5em;
}
.article-teaser.article-type-blog h3 a:before {
.article-teaser.article-type-blog h3 a::before {
display: inline-block;
font-style: normal;
font-variant: normal;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
font-family: $font-awesome-font-name;
font-family: $td-font-awesome-font-name;
content: "\f781";
padding-right: 0.5em;
}
@ -315,13 +315,13 @@
line-height: 1.2;
font-size: 1.5rem;
&:before {
&::before {
display: inline-block;
font-style: normal;
font-variant: normal;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
font-family: $font-awesome-font-name;
font-family: $td-font-awesome-font-name;
content: "\f122";
padding-right: 0.5em;
}
@ -334,11 +334,11 @@
}
.breadcrumb {
margin-bottom: 0em;
margin-bottom: 0;
font-size: 0.85rem;
}
.article-meta {
margin-bottom: 0em;
margin-bottom: 0;
}
}

View File

@ -3,29 +3,13 @@
$enable-gradients: true !default;
$enable-shadows: true !default;
// Theme colors
// TODO: consider moving all of these theme-color definitions into the User
// Guide SCSS, or declare theme here, but namespaced:
$primary: #30638e !default;
$secondary: #ffa630 !default;
$success: #3772ff !default;
$info: #c0e0de !default;
$warning: #ed6a5a !default;
$danger: #ed6a5a !default;
$light: #d3f3ee !default; // TODO: consider using BS value
$dark: #403f4c !default; // TODO: consider using BS value
$code-color: shade-color($secondary, 40%) !default;
:root,
[data-bs-theme="light"] {
--td-pre-bg: var(--bs-tertiary-bg);
}
// UI element colors
$border-color: $gray-300 !default;
$td-sidebar-tree-root-color: $primary !default;
$td-sidebar-bg-color: rgba($primary, 0.03) !default;
$td-sidebar-border-color: $border-color !default;
// Background colors for the sections on home page etc. It is a paint by number
// system, starting at 0, where the number is taken from the shortcode's ordinal
// if not provided by the user. These colors are all part of the theme palette,
@ -34,60 +18,27 @@ $td-sidebar-border-color: $border-color !default;
$td-box-colors: $dark, $primary, $secondary, $info, $white, $gray-600, $success,
$warning, $dark, $danger, $primary, $secondary, $info !default;
$link-color: $blue-500 !default;
$link-decoration: none !default;
$link-shade-percentage: 30% !default;
// Fonts
$td-enable-google-fonts: true !default;
$td-enable-google-fonts: false !default;
$google_font_name: "Open Sans" !default;
$google_font_family: "Open+Sans:300,300i,400,400i,700,700i" !default;
$web-font-path: "https://fonts.googleapis.com/css?family=#{$google_font_family}&display=swap";
$font-awesome-font-name: "Font Awesome 6 Free" !default;
$td-fonts-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
$td-font-awesome-font-name: "Font Awesome 6 Free" !default;
$td-google-font-name: "Open Sans" !default;
$td-google-font-family: "Open+Sans:300,300i,400,400i,700,700i" !default;
$td-web-font-path: "https://fonts.googleapis.com/css?family=#{$td-google-font-family}&display=swap";
@if $td-enable-google-fonts {
$td-fonts-serif: join("#{$google_font_name}", $td-fonts-serif);
$td-fonts-serif: join("#{$td-google-font-name}", $td-fonts-serif);
}
$font-family-sans-serif: $td-fonts-serif !default; // TODO: consider moving into UG SCSS or namespace the var (td-)
$font-family-sans-serif: null !default;
@if $td-enable-google-fonts {
$font-family-sans-serif: $td-fonts-serif;
}
$font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
"Liberation Mono", "Courier New", monospace !default; // TODO: consider moving into UG SCSS or namespace the var (td-)
$font-family-base: $font-family-sans-serif !default; // TODO: consider moving into UG SCSS or namespace the var (td-)
// Font weights
$font-weight-medium: 500 !default; // TODO: move into var forward file after upgrading BS to v5.3+
$font-weight-body-text: $font-weight-normal !default;
// Heading sizes
$h3-font-size: $font-size-base * 1.5 !default; // TODO: consider using BS default (* 1.75), or moving into UG SCSS
$h4-font-size: $font-size-base * 1.35 !default; // TODO: consider using BS default (* 1.5), or moving into UG SCSS
$h5-font-size: $font-size-base * 1.15 !default; // TODO: consider using BS default (* 1.25), or moving into UG SCSS
$td-font-weight-body-text: $font-weight-normal !default;
// Space
$td-block-space-top-base: 4 * $spacer !default;
$td-block-space-bottom-base: 4 * $spacer !default;
// Pagination
$pagination-color: $gray-600 !default; // TODO: consider using BS default
$pagination-disabled-color: $gray-300 !default; // TODO: consider using BS default
// Navbar
$navbar-dark-color: rgba($white, 0.75) !default; // TODO: consider moving into UG SCSS
$navbar-dark-hover-color: rgba($white, 0.5) !default; // TODO: consider moving into UG SCSS
// Footer
$list-inline-padding: $spacer;

View File

@ -1,21 +1,58 @@
// Forward declarations of variables used by _variables.scss and
// _variables_project.scss.
//
// TODO(@chalin): autogenerate the content of this file
// Docsy theme variables:
//
// Note: since these are Docsy variables, we don't forward (repeat) the
// definitions, we've simply added them here.
$td-fonts-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol" !default;
$td-font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
"Liberation Mono", "Courier New", monospace !default;
// ===================================================
// DO NOT EDIT non-comment lines beyond this point
// since they are auto-refreshed.
// Bootstrap SASS variables:
$white: #fff !default;
$gray-100: #f8f9fa !default;
$gray-200: #e9ecef !default;
$gray-300: #dee2e6 !default;
$gray-400: #ced4da !default;
$gray-500: #adb5bd !default;
$gray-600: #6c757d !default;
$gray-700: #495057 !default;
$gray-800: #343a40 !default;
$gray-900: #212529 !default;
$black: #000 !default;
$blue: #0d6efd !default;
$indigo: #6610f2 !default;
$purple: #6f42c1 !default;
$pink: #d63384 !default;
$red: #dc3545 !default;
$orange: #fd7e14 !default;
$yellow: #ffc107 !default;
$green: #198754 !default;
$teal: #20c997 !default;
$cyan: #0dcaf0 !default;
$blue-500: $blue !default;
$font-size-base: 1rem !default;
$font-weight-normal: 400 !default;
$font-weight-bold: 700 !default;
$font-size-base: 1rem !default; // Assumes the browser default, typically `16px`
$font-weight-normal: 400 !default;
$font-weight-bold: 700 !default;
$spacer: 1rem !default;
$primary: $blue !default;
$secondary: $gray-600 !default;
$success: $green !default;
$info: $cyan !default;
$warning: $yellow !default;
$danger: $red !default;
$light: $gray-100 !default;
$dark: $gray-900 !default;

View File

@ -1,7 +1,4 @@
/*
Nothing defined here. The Hugo project that uses this theme can override theme variables by adding a file to:
assets/scss/_variables_project.scss
Projects can override this file. For details, see:
https://www.docsy.dev/docs/adding-content/lookandfeel/#project-style-files
*/

View File

@ -0,0 +1,4 @@
/*
Projects can override this file. For details, see:
https://www.docsy.dev/docs/adding-content/lookandfeel/#project-style-files
*/

View File

@ -1,6 +1,8 @@
// cSpell:ignore pageinfo
@import "../vendor/bootstrap/scss/functions";
@import "_variables_forward";
@import "variables_forward";
@import "variables_project";
@import "variables";
@import "support/mixins";
@ -8,9 +10,11 @@
@import "../vendor/bootstrap/scss/bootstrap";
@import "support/bootstrap_vers_test";
@import "../vendor/Font-Awesome/scss/fontawesome.scss";
@import "../vendor/Font-Awesome/scss/solid.scss";
@import "../vendor/Font-Awesome/scss/brands.scss";
@import "../vendor/Font-Awesome/scss/fontawesome";
@import "../vendor/Font-Awesome/scss/solid";
@import "../vendor/Font-Awesome/scss/brands";
@import "variables_project_after_bs";
@import "support/utilities";
@import "colors";
@ -33,10 +37,11 @@
@import "drawio";
@import "shortcodes";
@import "swagger";
@import "support/rtl";
@if $td-enable-google-fonts {
@import url($web-font-path);
@import url($td-web-font-path);
}
.td-footer {
@ -49,9 +54,17 @@
min-height: 200px;
}
&__copyright-etc {
/* &__left { } */
&__center {
@extend .small;
text-align: center;
}
&__right {
text-align: right;
}
&__about {
font-size: initial;
}
@ -64,7 +77,7 @@
&-item {
@extend .list-inline-item;
@extend .h3;
@include font-size(map-get($font-sizes, 4));
a {
color: inherit !important;
@ -72,6 +85,14 @@
}
}
&__authors,
&__all_rights_reserved {
padding-left: map-get($spacers, 1);
}
&__all_rights_reserved {
display: none;
}
}
// Adjust anchors vs the fixed menu.
@ -83,10 +104,10 @@
visibility: hidden;
}
h2[id]:before,
h3[id]:before,
h4[id]:before,
h5[id]:before {
h2[id]::before,
h3[id]::before,
h4[id]::before,
h5[id]::before {
display: block;
content: " ";
margin-top: -5rem;

View File

@ -1,55 +0,0 @@
body:lang(fa),
body:lang(ar),
body:lang(az),
body:lang(dv),
body:lang(he),
body:lang(ku),
body:lang(ur) {
@import "spacing";
direction: rtl;
text-align: right;
.dropdown-menu {
text-align: right;
}
.text-right {
text-align: left !important;
}
pre {
text-align: left;
direction: ltr;
}
.td-rss-button {
left: 1rem !important;
right: auto !important;
}
}
body:lang(fa) {
@import url("https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v27.0.1/dist/font-face.css");
font-family: "Vazir", "Open Sans", -apple-system, BlinkMacSystemFont,
"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
"Segoe UI Emoji", "Segoe UI Symbol";
}
body:lang(he) {
@if $td-enable-google-fonts {
@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap");
}
font-family: "Rubik", "Open Sans", -apple-system, BlinkMacSystemFont,
"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
"Segoe UI Emoji", "Segoe UI Symbol";
}
body:lang(ar) {
@if $td-enable-google-fonts {
@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap");
}
font-family: "Tajawal", "Open Sans", -apple-system, BlinkMacSystemFont,
"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
"Segoe UI Emoji", "Segoe UI Symbol";
}

View File

@ -1,87 +0,0 @@
@each $breakpoint in map-keys($grid-breakpoints) {
@include media-breakpoint-up($breakpoint) {
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
@each $prop, $abbrev in (margin: m, padding: p) {
@each $size, $length in $spacers {
.#{$abbrev}#{$infix}-#{$size} {
#{$prop}: $length !important;
}
.#{$abbrev}t#{$infix}-#{$size},
.#{$abbrev}y#{$infix}-#{$size} {
#{$prop}-top: $length !important;
}
.#{$abbrev}r#{$infix}-#{$size},
.#{$abbrev}x#{$infix}-#{$size} {
#{$prop}-inline-end: $length !important;
}
.#{$abbrev}b#{$infix}-#{$size},
.#{$abbrev}y#{$infix}-#{$size} {
#{$prop}-bottom: $length !important;
}
.#{$abbrev}l#{$infix}-#{$size},
.#{$abbrev}x#{$infix}-#{$size} {
#{$prop}-inline-start: $length !important;
}
}
}
// Negative margins (e.g., where `.mb-n1` is negative version of `.mb-1`)
@each $size, $length in $spacers {
@if $size !=0 {
.m#{$infix}-n#{$size} {
margin: -$length !important;
}
.mt#{$infix}-n#{$size},
.my#{$infix}-n#{$size} {
margin-top: -$length !important;
}
.mr#{$infix}-n#{$size},
.mx#{$infix}-n#{$size} {
margin-right: -$length !important;
}
.mb#{$infix}-n#{$size},
.my#{$infix}-n#{$size} {
margin-bottom: -$length !important;
}
.ml#{$infix}-n#{$size},
.mx#{$infix}-n#{$size} {
margin-left: -$length !important;
}
}
}
// Some special margin utils
.m#{$infix}-auto {
margin: auto !important;
}
.mt#{$infix}-auto,
.my#{$infix}-auto {
margin-top: auto !important;
}
.mr#{$infix}-auto,
.mx#{$infix}-auto {
margin-right: auto !important;
}
.mb#{$infix}-auto,
.my#{$infix}-auto {
margin-bottom: auto !important;
}
.ml#{$infix}-auto,
.mx#{$infix}-auto {
margin-left: auto !important;
}
}
}

View File

@ -7,7 +7,7 @@
margin-bottom: 0;
a {
font-weight: 700;
font-weight: $font-weight-bold;
}
}

View File

@ -1,2 +1,2 @@
@import "shortcodes/tabbed-pane.scss";
@import "shortcodes/cards-pane.scss";
@import "shortcodes/tabbed-pane";
@import "shortcodes/cards-pane";

View File

@ -12,15 +12,18 @@
}
}
.card-header.code {
background-color: $card-bg;
}
.card-body {
&.code {
background-color: #f8f9fa;
background-color: $card-bg;
padding: 0 0 0 1ex;
}
pre {
margin: 0;
padding: 0 1rem 1rem 1rem;
}
}
}

View File

@ -10,18 +10,18 @@
border: none;
max-width: 100%;
}
margin-top: 0rem;
margin-top: 0;
margin-bottom: 1.5rem;
border-left: 1px solid rgba(0, 0, 0, 0.125);
border-right: 1px solid rgba(0, 0, 0, 0.125);
border-bottom: 1px solid rgba(0, 0, 0, 0.125);
border-left: $nav-tabs-border-width solid $nav-tabs-border-color;
border-right: $nav-tabs-border-width solid $nav-tabs-border-color;
border-bottom: $nav-tabs-border-width solid $nav-tabs-border-color;
}
}
.tab-body {
font-weight: $font-weight-medium;
background: $gray-100;
color: inherit;
background: var(--td-pre-bg);
color: var(--bs-body-color);
border-radius: 0;
padding: 1.5rem;

View File

@ -1,5 +1,20 @@
// Mixins
@mixin link-decoration($base: none, $focus_or_hover: initial) {
a {
text-decoration: $base;
&:focus,
&:hover {
text-decoration: $focus_or_hover;
}
}
.btn-link {
text-decoration: $base;
}
}
@mixin link-variant($parent, $color, $hover-color, $underline: false) {
#{$parent} {
color: $color;

View File

@ -25,10 +25,7 @@
&::after {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
inset: 0;
}
&--dark::after {

View File

@ -0,0 +1,10 @@
[data-bs-theme="light"] {
@import 'td/chroma/light';
}
[data-bs-theme="dark"] {
@import 'td/chroma/dark';
.chroma {
background-color: var(--td-pre-bg);
}
}

View File

@ -0,0 +1,89 @@
/* Chroma style: onedark */
/* Generated using: hugo gen chromastyles --style=onedark */
/* Background */ .bg { color:#abb2bf;background-color:#282c34; }
/* PreWrapper */ .chroma { color:#abb2bf;background-color:#282c34; }
/* Other */ .chroma .x { }
/* Error */ .chroma .err { }
/* CodeLine */ .chroma .cl { }
/* LineLink */ .chroma .lnlinks { outline:none;text-decoration:none;color:inherit }
/* LineTableTD */ .chroma .lntd { vertical-align:top;padding:0;margin:0;border:0; }
/* LineTable */ .chroma .lntable { border-spacing:0;padding:0;margin:0;border:0; }
/* LineHighlight */ .chroma .hl { background-color:#3d4148 }
/* LineNumbersTable */ .chroma .lnt { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#55595f }
/* LineNumbers */ .chroma .ln { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#55595f }
/* Line */ .chroma .line { display:flex; }
/* Keyword */ .chroma .k { color:#c678dd }
/* KeywordConstant */ .chroma .kc { color:#e5c07b }
/* KeywordDeclaration */ .chroma .kd { color:#c678dd }
/* KeywordNamespace */ .chroma .kn { color:#c678dd }
/* KeywordPseudo */ .chroma .kp { color:#c678dd }
/* KeywordReserved */ .chroma .kr { color:#c678dd }
/* KeywordType */ .chroma .kt { color:#e5c07b }
/* Name */ .chroma .n { color:#e06c75 }
/* NameAttribute */ .chroma .na { color:#e06c75 }
/* NameClass */ .chroma .nc { color:#e5c07b }
/* NameConstant */ .chroma .no { color:#e06c75 }
/* NameDecorator */ .chroma .nd { color:#61afef }
/* NameEntity */ .chroma .ni { color:#e06c75 }
/* NameException */ .chroma .ne { color:#e06c75 }
/* NameLabel */ .chroma .nl { color:#e06c75 }
/* NameNamespace */ .chroma .nn { color:#e06c75 }
/* NameOther */ .chroma .nx { color:#e06c75 }
/* NameProperty */ .chroma .py { color:#e06c75 }
/* NameTag */ .chroma .nt { color:#e06c75 }
/* NameBuiltin */ .chroma .nb { color:#e5c07b }
/* NameBuiltinPseudo */ .chroma .bp { color:#e5c07b }
/* NameVariable */ .chroma .nv { color:#e06c75 }
/* NameVariableClass */ .chroma .vc { color:#e06c75 }
/* NameVariableGlobal */ .chroma .vg { color:#e06c75 }
/* NameVariableInstance */ .chroma .vi { color:#e06c75 }
/* NameVariableMagic */ .chroma .vm { color:#e06c75 }
/* NameFunction */ .chroma .nf { color:#61afef;font-weight:bold }
/* NameFunctionMagic */ .chroma .fm { color:#56b6c2;font-weight:bold }
/* Literal */ .chroma .l { }
/* LiteralDate */ .chroma .ld { }
/* LiteralString */ .chroma .s { color:#98c379 }
/* LiteralStringAffix */ .chroma .sa { color:#98c379 }
/* LiteralStringBacktick */ .chroma .sb { color:#98c379 }
/* LiteralStringChar */ .chroma .sc { color:#98c379 }
/* LiteralStringDelimiter */ .chroma .dl { color:#98c379 }
/* LiteralStringDoc */ .chroma .sd { color:#98c379 }
/* LiteralStringDouble */ .chroma .s2 { color:#98c379 }
/* LiteralStringEscape */ .chroma .se { color:#98c379 }
/* LiteralStringHeredoc */ .chroma .sh { color:#98c379 }
/* LiteralStringInterpol */ .chroma .si { color:#98c379 }
/* LiteralStringOther */ .chroma .sx { color:#98c379 }
/* LiteralStringRegex */ .chroma .sr { color:#98c379 }
/* LiteralStringSingle */ .chroma .s1 { color:#98c379 }
/* LiteralStringSymbol */ .chroma .ss { color:#98c379 }
/* LiteralNumber */ .chroma .m { color:#d19a66 }
/* LiteralNumberBin */ .chroma .mb { color:#d19a66 }
/* LiteralNumberFloat */ .chroma .mf { color:#d19a66 }
/* LiteralNumberHex */ .chroma .mh { color:#d19a66 }
/* LiteralNumberInteger */ .chroma .mi { color:#d19a66 }
/* LiteralNumberIntegerLong */ .chroma .il { color:#d19a66 }
/* LiteralNumberOct */ .chroma .mo { color:#d19a66 }
/* Operator */ .chroma .o { color:#56b6c2 }
/* OperatorWord */ .chroma .ow { color:#56b6c2 }
/* Punctuation */ .chroma .p { }
/* Comment */ .chroma .c { color:#7f848e }
/* CommentHashbang */ .chroma .ch { color:#7f848e }
/* CommentMultiline */ .chroma .cm { color:#7f848e }
/* CommentSingle */ .chroma .c1 { color:#7f848e }
/* CommentSpecial */ .chroma .cs { color:#7f848e }
/* CommentPreproc */ .chroma .cp { color:#7f848e }
/* CommentPreprocFile */ .chroma .cpf { color:#7f848e }
/* Generic */ .chroma .g { }
/* GenericDeleted */ .chroma .gd { color:#e06c75 }
/* GenericEmph */ .chroma .ge { }
/* GenericError */ .chroma .gr { }
/* GenericHeading */ .chroma .gh { }
/* GenericInserted */ .chroma .gi { color:#98c379;font-weight:bold }
/* GenericOutput */ .chroma .go { }
/* GenericPrompt */ .chroma .gp { }
/* GenericStrong */ .chroma .gs { }
/* GenericSubheading */ .chroma .gu { }
/* GenericTraceback */ .chroma .gt { }
/* GenericUnderline */ .chroma .gl { }
/* TextWhitespace */ .chroma .w { }

View File

@ -0,0 +1,89 @@
/* Chroma style: tango */
/* Generated using: hugo gen chromastyles --style=tango */
/* Background */ .bg { background-color:#f8f8f8; }
/* PreWrapper */ .chroma { background-color:#f8f8f8; }
/* Other */ .chroma .x { color:#000 }
/* Error */ .chroma .err { color:#a40000 }
/* CodeLine */ .chroma .cl { }
/* LineLink */ .chroma .lnlinks { outline:none;text-decoration:none;color:inherit }
/* LineTableTD */ .chroma .lntd { vertical-align:top;padding:0;margin:0;border:0; }
/* LineTable */ .chroma .lntable { border-spacing:0;padding:0;margin:0;border:0; }
/* LineHighlight */ .chroma .hl { background-color:#dfdfdf }
/* LineNumbersTable */ .chroma .lnt { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f }
/* LineNumbers */ .chroma .ln { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f }
/* Line */ .chroma .line { display:flex; }
/* Keyword */ .chroma .k { color:#204a87;font-weight:bold }
/* KeywordConstant */ .chroma .kc { color:#204a87;font-weight:bold }
/* KeywordDeclaration */ .chroma .kd { color:#204a87;font-weight:bold }
/* KeywordNamespace */ .chroma .kn { color:#204a87;font-weight:bold }
/* KeywordPseudo */ .chroma .kp { color:#204a87;font-weight:bold }
/* KeywordReserved */ .chroma .kr { color:#204a87;font-weight:bold }
/* KeywordType */ .chroma .kt { color:#204a87;font-weight:bold }
/* Name */ .chroma .n { color:#000 }
/* NameAttribute */ .chroma .na { color:#c4a000 }
/* NameClass */ .chroma .nc { color:#000 }
/* NameConstant */ .chroma .no { color:#000 }
/* NameDecorator */ .chroma .nd { color:#5c35cc;font-weight:bold }
/* NameEntity */ .chroma .ni { color:#ce5c00 }
/* NameException */ .chroma .ne { color:#c00;font-weight:bold }
/* NameLabel */ .chroma .nl { color:#f57900 }
/* NameNamespace */ .chroma .nn { color:#000 }
/* NameOther */ .chroma .nx { color:#000 }
/* NameProperty */ .chroma .py { color:#000 }
/* NameTag */ .chroma .nt { color:#204a87;font-weight:bold }
/* NameBuiltin */ .chroma .nb { color:#204a87 }
/* NameBuiltinPseudo */ .chroma .bp { color:#3465a4 }
/* NameVariable */ .chroma .nv { color:#000 }
/* NameVariableClass */ .chroma .vc { color:#000 }
/* NameVariableGlobal */ .chroma .vg { color:#000 }
/* NameVariableInstance */ .chroma .vi { color:#000 }
/* NameVariableMagic */ .chroma .vm { color:#000 }
/* NameFunction */ .chroma .nf { color:#000 }
/* NameFunctionMagic */ .chroma .fm { color:#000 }
/* Literal */ .chroma .l { color:#000 }
/* LiteralDate */ .chroma .ld { color:#000 }
/* LiteralString */ .chroma .s { color:#4e9a06 }
/* LiteralStringAffix */ .chroma .sa { color:#4e9a06 }
/* LiteralStringBacktick */ .chroma .sb { color:#4e9a06 }
/* LiteralStringChar */ .chroma .sc { color:#4e9a06 }
/* LiteralStringDelimiter */ .chroma .dl { color:#4e9a06 }
/* LiteralStringDoc */ .chroma .sd { color:#8f5902;font-style:italic }
/* LiteralStringDouble */ .chroma .s2 { color:#4e9a06 }
/* LiteralStringEscape */ .chroma .se { color:#4e9a06 }
/* LiteralStringHeredoc */ .chroma .sh { color:#4e9a06 }
/* LiteralStringInterpol */ .chroma .si { color:#4e9a06 }
/* LiteralStringOther */ .chroma .sx { color:#4e9a06 }
/* LiteralStringRegex */ .chroma .sr { color:#4e9a06 }
/* LiteralStringSingle */ .chroma .s1 { color:#4e9a06 }
/* LiteralStringSymbol */ .chroma .ss { color:#4e9a06 }
/* LiteralNumber */ .chroma .m { color:#0000cf;font-weight:bold }
/* LiteralNumberBin */ .chroma .mb { color:#0000cf;font-weight:bold }
/* LiteralNumberFloat */ .chroma .mf { color:#0000cf;font-weight:bold }
/* LiteralNumberHex */ .chroma .mh { color:#0000cf;font-weight:bold }
/* LiteralNumberInteger */ .chroma .mi { color:#0000cf;font-weight:bold }
/* LiteralNumberIntegerLong */ .chroma .il { color:#0000cf;font-weight:bold }
/* LiteralNumberOct */ .chroma .mo { color:#0000cf;font-weight:bold }
/* Operator */ .chroma .o { color:#ce5c00;font-weight:bold }
/* OperatorWord */ .chroma .ow { color:#204a87;font-weight:bold }
/* Punctuation */ .chroma .p { color:#000;font-weight:bold }
/* Comment */ .chroma .c { color:#8f5902;font-style:italic }
/* CommentHashbang */ .chroma .ch { color:#8f5902;font-style:italic }
/* CommentMultiline */ .chroma .cm { color:#8f5902;font-style:italic }
/* CommentSingle */ .chroma .c1 { color:#8f5902;font-style:italic }
/* CommentSpecial */ .chroma .cs { color:#8f5902;font-style:italic }
/* CommentPreproc */ .chroma .cp { color:#8f5902;font-style:italic }
/* CommentPreprocFile */ .chroma .cpf { color:#8f5902;font-style:italic }
/* Generic */ .chroma .g { color:#000 }
/* GenericDeleted */ .chroma .gd { color:#a40000 }
/* GenericEmph */ .chroma .ge { color:#000;font-style:italic }
/* GenericError */ .chroma .gr { color:#ef2929 }
/* GenericHeading */ .chroma .gh { color:#000080;font-weight:bold }
/* GenericInserted */ .chroma .gi { color:#00a000 }
/* GenericOutput */ .chroma .go { color:#000;font-style:italic }
/* GenericPrompt */ .chroma .gp { color:#8f5902 }
/* GenericStrong */ .chroma .gs { color:#000;font-weight:bold }
/* GenericSubheading */ .chroma .gu { color:#800080;font-weight:bold }
/* GenericTraceback */ .chroma .gt { color:#a40000;font-weight:bold }
/* GenericUnderline */ .chroma .gl { color:#000;text-decoration:underline }
/* TextWhitespace */ .chroma .w { color:#f8f8f8;text-decoration:underline }

4
go.mod
View File

@ -5,6 +5,6 @@ go 1.12
// AUTO-GENERATED using `npm run get:hugo-modules`
require (
github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2 // indirect
github.com/twbs/bootstrap v5.2.3+incompatible // indirect
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3 // indirect
github.com/twbs/bootstrap v5.3.6+incompatible // indirect
)

8
go.sum
View File

@ -1,4 +1,4 @@
github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2 h1:Uv1z5EqCfmiK4IHUwT0m3h/u/WCk+kpRfxvAZhpC7Gc=
github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
github.com/twbs/bootstrap v5.2.3+incompatible h1:lOmsJx587qfF7/gE7Vv4FxEofegyJlEACeVV+Mt7cgc=
github.com/twbs/bootstrap v5.2.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3 h1:/iluJkJiyTAdnqrw3Yi9rH2HNHhrrtCmj8VJe7I6o3w=
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
github.com/twbs/bootstrap v5.3.6+incompatible h1:efmXVyq839m5QQ0+JBUdQQ1TrmoBqvQ5kRhUueKsH+4=
github.com/twbs/bootstrap v5.3.6+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=

View File

@ -18,7 +18,7 @@ outputFormats:
module:
hugoVersion:
extended: true
min: 0.110.0
min: 0.146.0
mounts:
- source: assets
target: assets
@ -44,7 +44,7 @@ module:
target: static/webfonts
# Mounts for module installations,
# needed to work around a known bug in Gos module management.
- source: assets/_vendor/bootstrap/scss/
- source: assets/_vendor/bootstrap/scss
target: assets/vendor/bootstrap/scss/vendor
imports:
- path: github.com/twbs/bootstrap

View File

@ -1,80 +1,89 @@
# UI strings. Buttons and similar.
[ui_pager_prev]
other = "السابق"
other = "السَّابق"
[ui_pager_next]
other = "التالي"
other = "التَّالي"
[ui_read_more]
other = "إقرأ المزيد"
other = "اِقْرأ اَلمزِيد"
[ui_search]
other = "ابحث في هذا الموقع"
other = "اِبْحث فِي هذَا اَلموْقِع"
# Used in sentences such as "Posted in News"
[ui_in]
other = "في"
other = "فِي"
# Used in sentences such as "All Tags"
[ui_all]
other = ل"
other = ُلَّ"
# Footer text
[footer_all_rights_reserved]
other = افة الحقوق محفوظة"
other = َافَّة اَلحُقوق مَحفُوظة"
[footer_privacy_policy]
other = ياسة الخصوصية"
other = ِياسة الخصوصيَّة"
# Post (blog, articles etc.)
# Post (blog , articles etc.)
[post_byline_by]
other = "الكاتب"
[post_created]
other = نشئة"
other = ُنْشِئة"
[post_last_mod]
other = "اخر تعديل"
other = "آخر تَعدِيل"
[post_edit_this]
other = "عدل هذه الصفحة"
other = "عدل هَذِه الصَّفْحة"
[post_view_this]
other = نظر مصدر الصفحة"
other = َنظُر مَصدَر الصَّفْحة"
[post_create_child_page]
other = " أنشئ صفحة فرعية"
other = "أُنْشِئ صَفحَة فَرعِية"
[post_create_issue]
other = نشئ مسألة حول الوثائق"
other = ُنْشِئ مَسْأَلة حَوْل الوثائق"
[post_create_project_issue]
other = نشئ مسألة حول المشروع"
other = ُنْشِئ مَسْأَلة حَوْل المشْروع"
[post_posts_in]
other = نشور في"
other = َنشُور فِي"
[post_reading_time]
other = قيقة للقراءة"
other = َقِيقَة لِلْقراءة"
[post_less_than_a_minute_read]
other = "أقل من دقيقة"
other = "أقلَّ مِن دَقِيقَة"
# Print support
[print_printable_section]
other = "هذا العرض يتضمن عدة صفحات للطباعة ضمن هذا القسم."
other = "هذَا العرْض يَتَضمَّن عِدَّة صَفَحات لِلطِّباعة ضِمْن هذَا القسْم."
[print_click_to_print]
other = "اضغط هنا للطباعة"
other = "اِضْغط هُنَا لِلطِّباعة"
[print_show_regular]
other = "العودة للعرض العادي"
other = "اَلْعَودة لِلْعرْض العاديِّ"
[print_entire_section]
other = "اطبع القسم كاملا"
other = "اِطْبع القسْم كاملا"
# Community
[community_join]
other = "انضم الي مجتمع {{ .Site.Title }}"
other = "اِنْضمَّ إِلى مُجتَمَع {{ .Site.Title }}"
[community_introduce]
other = "{{ .Site.Title }} هو مشروع مفتوح المصدر يمكن لأي شخص في المجتمع استخدامه وتحسينه والاستمتاع به. يسعدنا أن تنضم إلينا! إليك بعض الطرق للمشاركة و معرفة ما يحدث."
other = "{{ .Site.Title }} هُو مَشرُوع مَفتُوح المصْدر يُمْكِن لِأيِّ شَخْص فِي المجْتمع اِسْتخْدامه وتحْسينه والاسْتمْتاع بِه. يُسْعدنَا أن تَنضَم إِليْنَا! إِلَيك بَعْض الطُّرق لِلْمشاركة ومتابعة آخر التَّحْديثات."
[community_learn]
other = علم وتواصل"
other = َعلُّم وتواصل"
[community_using]
other = ستخدام أو تريد استخدام {{ .Site.Title }}؟ اكتشف المزيد هنا:"
other = ِسْتخْدام أو تُريد اِسْتخْدام {{ .Site.Title }} ؟ اِكتشَف اَلمزِيد هُنَا:"
[community_develop]
other = ور و ساهم"
other = َوَّر وساهم "
[community_contribute]
other = ذا كنت ترغب في المشاركة بشكل أكبر من خلال المساهمة في {{ .Site.Title }}, انضم إلينا هنا:"
other = ِذَا كُنْت تَرغَب فِي المشاركة بِشَكل أَكبَر مِن خِلَال المساهمة فِي {{ .Site.Title }} ،اِنْضمَّ إِليْنَا هُنَا:"
[community_how_to]
other = مكنك معرفة كيفية المساهمة في {{ .Site.Title }} من خلال"
other = ُمْكِنك مَعرِفة كَيفِية المساهمة فِي {{ .Site.Title }} مِن خِلَال"
[community_guideline]
other = "إرشادات المساهمة"
other = "إِرْشادات المساهمة"
# Feedback
[feedback_title]
other = "تَقيِيم الأدَاء"
[feedback_question]
other = "هل كَانَت هَذِه الصَّفْحة مُفيدَة"
[feedback_positive]
other = "نعم"
[feedback_negative]
other = "لََا"

View File

@ -79,3 +79,13 @@ other = "Si deseas involucrarte más contribuyendo a {{ .Site.Title }}, únete a
other = "Puedes averiguar cómo contribuir a {{ .Site.Title }} en nuestras"
[community_guideline]
other = "Guias de Contribución"
# Feedback
[feedback_title]
other = "Comentarios"
[feedback_question]
other = "¿Fue útil esta página?"
[feedback_positive]
other = "Si"
[feedback_negative]
other = "No"

View File

@ -1,5 +1,3 @@
# UI strings. Buttons and similar.
[ui_pager_prev]
@ -35,6 +33,8 @@ other = "ساخته شده"
other = "آخرین تغییرات"
[post_edit_this]
other = "این صفحه را ویرایش کنید"
[post_view_this]
other = "مشاهده منبع صفحه"
[post_create_child_page]
other = "ایجاد زیر صفحه در این صفحه"
[post_create_issue]
@ -76,3 +76,13 @@ other = "If you want to get more involved by contributing to {{ .Site.Title }},
other = "You can find out how to contribute to {{ .Site.Title }} in our"
[community_guideline]
other = "Contribution Guidelines"
# Feedback
[feedback_title]
other = "بازخورد"
[feedback_question]
other = "این صفحه به شما کمک کرد؟"
[feedback_positive]
other = "آره"
[feedback_negative]
other = "نه"

View File

@ -77,3 +77,14 @@ other = "Si vous voulez vous impliquer davantage en contribuant à {{ .Site.Titl
other = "Vous pouvez trouver comment contribuer à {{ .Site.Title }} dans nos"
[community_guideline]
other = "Règles de contribution"
# Feedback
[feedback_title]
other = "Feedback"
[feedback_question]
other = "Cette page est-elle utile?"
[feedback_positive]
other = "Oui"
[feedback_negative]
other = "Non"

View File

@ -77,3 +77,13 @@ other = "If you want to get more involved by contributing to {{ .Site.Title }},
other = "You can find out how to contribute to {{ .Site.Title }} in our"
[community_guideline]
other = "Contribution Guidelines"
# Feedback
[feedback_title]
other = "フィードバック"
[feedback_question]
other = "このページは役に立ちましたか?"
[feedback_positive]
other = "役に立った"
[feedback_negative]
other = "役に立たなかった"

View File

@ -20,10 +20,10 @@ other = "i"
# Footer text
[footer_all_rights_reserved]
other = "Alle retter er reservert"
other = "Alle rettigheter er reservert"
[footer_privacy_policy]
other = "Privacy Policy"
other = "Personvernpolicy"
# Post (blog, articles etc.)
@ -36,42 +36,44 @@ other = "Sist endret"
[post_edit_this]
other = "Endre denne siden"
[post_create_child_page]
other = "Create child page"
other = "Lag underside"
[post_create_issue]
other = "Opprett dokumentasjon sak"
[post_create_project_issue]
other = "Opprett prosjekt sak"
[post_posts_in]
other = "Poster i"
other = "Poster til"
[post_reading_time]
other = "minute read"
[post_less_than_a_minute_read]
other = "less than a minute"
[post_view_this]
other = "Vis kildekoden"
# Print support
[print_printable_section]
other = "This is the multi-page printable view of this section."
other = "Dette er flersidevisningen av denne seksjonen."
[print_click_to_print]
other = "Click here to print"
other = "Klikk her for å skrive ut"
[print_show_regular]
other = "Return to the regular view of this page"
other = "Gå tilbake til vanlig sidevisning"
[print_entire_section]
other = "Print entire section"
other = "Skriv ut hele seksjonen"
# Community
[community_join]
other = "Join the {{ .Site.Title }} community"
other = "Bli med i {{ .Site.Title }} fellesskapet"
[community_introduce]
other = "{{ .Site.Title }} is an open source project that anyone in the community can use, improve, and enjoy. We'd love you to join us! Here's a few ways to find out what's happening and get involved."
other = "{{ .Site.Title }} er et åpen kildekodeprosjekt som alle kan bruke, forbedre og glede seg over. Bli med - her er noen måter du kan holde deg oppdatert på og bidra."
[community_learn]
other = "Learn and Connect"
other = "Lær og få kontakt"
[community_using]
other = "Using or want to use {{ .Site.Title }}? Find out more here:"
other = "Bruker du, eller har du lyst til å bruke {{ .Site.Title }}? Lær mer her:"
[community_develop]
other = "Develop and Contribute"
other = "Bidra og videreutvikle"
[community_contribute]
other = "If you want to get more involved by contributing to {{ .Site.Title }}, join us here:"
other = "Dersom du vil involvere deg mer ved å bidra til {{ .Site.Title }}, bli med oss her:"
[community_how_to]
other = "You can find out how to contribute to {{ .Site.Title }} in our"
other = "Du kan finne ut hvordan du bidrar til {{ .Site.Title }} i vår"
[community_guideline]
other = "Contribution Guidelines"
other = "Retningslinjer for bidrag"

90
i18n/oc.toml Normal file
View File

@ -0,0 +1,90 @@
# UI strings. Buttons and similar.
[ui_pager_prev]
other = "Precedent"
[ui_pager_next]
other = "Seguent"
[ui_read_more]
other = "Ne legir mai"
[ui_search]
other = "Cercar dins lo site…"
# Used in sentences such as "Posted in News"
[ui_in]
other = "Dins"
# Used in sentences such as "All Tags"
[ui_all]
other = "Totas"
# Footer text
[footer_all_rights_reserved]
other = "Tot drech reservat"
[footer_privacy_policy]
other = "Politica de confidencialitat"
# Post (blog, articles etc.)
[post_byline_by]
other = "Per"
[post_created]
other = "Creacion"
[post_last_mod]
other = "Darrièra modificacion"
[post_edit_this]
other = "Modificar aquesta pagina"
[post_view_this]
other = "Veire la pagina font"
[post_create_child_page]
other = "Crear una pagina enfant"
[post_create_issue]
other = "Crear una anomalia de documentacion"
[post_create_project_issue]
other = "Crear una anomalia de projècte"
[post_posts_in]
other = "Publicacions dins"
[post_reading_time]
other = "minutas de lectura"
[post_less_than_a_minute_read]
other = "mens d'una minuta de lectura"
# Print support
[print_printable_section]
other = "Aquò es una vista multipagina imprimibla de la seccion."
[print_click_to_print]
other = "Clicar aquí per imprimir"
[print_show_regular]
other = "Tornar a la vista normala d'aquesta pagina"
[print_entire_section]
other = "Imprimir la seccion complèta"
# Community
[community_join]
other = "Rejónher la comunitat {{ .Site.Title }}"
[community_introduce]
other = "{{ .Site.Title }} es un projècte liure que totòm dins la comunitat pòt utilizar, melhorar e n'aprofichar. Nos agradariá que nos rejonguèssetz! Vaquí d'unas etapas per saber çò que se passa e s'implicar."
[community_learn]
other = "Aprendre e se connectar"
[community_using]
other = "Utilizatz o volètz utilizar {{ .Site.Title }}? Aprenètz-ne mai aquí:"
[community_develop]
other = "Desvelopar e contribuir"
[community_contribute]
other = "Se volètz vos implicar en contribuissent a {{ .Site.Title }}, retrobatz-nos:"
[community_how_to]
other = "Podètz trobar cossí contribuir a {{ .Site.Title }} dins nòstra"
[community_guideline]
other = "Guida de contribucion"
# Feedback
[feedback_title]
other = "Feedback"
[feedback_question]
other = "Èra utila aquesta pagina?"
[feedback_positive]
other = "Oc"
[feedback_negative]
other = "Non"

View File

@ -12,7 +12,7 @@ other = "Dalej"
other = "Zobacz więcej"
[ui_search]
other = "Szukaj ns stronie ..."
other = "Szukaj na stronie ..."
# Used in sentences such as "Posted in News"
[ui_in]

View File

@ -1,5 +1,3 @@
# UI strings. Buttons and similar.
[ui_pager_prev]
@ -18,6 +16,10 @@ other = "Buscar no site…"
[ui_in]
other = "em"
# Used in sentences such as "All Tags"
[ui_all]
other = "todos"
# Footer text
[footer_all_rights_reserved]
other = "Todos os direitos reservados"
@ -25,7 +27,6 @@ other = "Todos os direitos reservados"
[footer_privacy_policy]
other = "Política de Privacidade"
# Post (blog, articles etc.)
[post_byline_by]
other = "Por"
@ -35,6 +36,8 @@ other = "Criado"
other = "Última modificação"
[post_edit_this]
other = "Editar essa página"
[post_view_this]
other = "Ver origem da página"
[post_create_child_page]
other = "Criar uma subpágina"
[post_create_issue]
@ -75,3 +78,13 @@ other = "If you want to get more involved by contributing to {{ .Site.Title }},
other = "You can find out how to contribute to {{ .Site.Title }} in our"
[community_guideline]
other = "Contribution Guidelines"
# Feedback
[feedback_title]
other = "Feedback"
[feedback_question]
other = "Esta página foi útil?"
[feedback_positive]
other = "Sim"
[feedback_negative]
other = "Não"

90
i18n/sr-cyrl.toml Normal file
View File

@ -0,0 +1,90 @@
# UI strings. Buttons and similar.
[ui_pager_prev]
other = "Претходно"
[ui_pager_next]
other = "Наредно"
[ui_read_more]
other = "Прочитајте више"
[ui_search]
other = "Претражите сајт…"
# Used in sentences such as "Posted in News"
[ui_in]
other = "у"
# Used in sentences such as "All Tags"
[ui_all]
other = "све"
# Footer text
[footer_all_rights_reserved]
other = "Сва права задржана"
[footer_privacy_policy]
other = "Политика приватности"
# Post (blog, articles etc.)
[post_byline_by]
other = "Аутор"
[post_created]
other = "Креирано"
[post_last_mod]
other = "Последњи пут измењено"
[post_edit_this]
other = "Уредите ову страницу"
[post_view_this]
other = "Погледајте извор странице"
[post_create_child_page]
other = "Креирајте подстраницу"
[post_create_issue]
other = "Креирајте issue за документацију"
[post_create_project_issue]
other = "Креирајте issue за пројекат"
[post_posts_in]
other = "Објава у"
[post_reading_time]
other = "минута за читање"
[post_less_than_a_minute_read]
other = "мање од минута за читање"
# Print support
[print_printable_section]
other = "Ово је вишестрани преглед за штампање ове секције."
[print_click_to_print]
other = "Кликните овде за штампање"
[print_show_regular]
other = "Повратак на обичан преглед ове странице"
[print_entire_section]
other = "Одштампајте читаву секцију"
# Community
[community_join]
other = "Придружите се {{ .Site.Title }} заједници"
[community_introduce]
other = "{{ .Site.Title }} је open source пројекат којег свако у заједници може да користи, унапређује и да ужива у њему. Волели бисмо да нам се придружите! Овде се можете укључити како бисте сазнали шта се дешава."
[community_learn]
other = "Научите и повежите се"
[community_using]
other = "Већ користите или желите да почнете користити {{ .Site.Title }}? Сазнајте више:"
[community_develop]
other = "Развој и допринос"
[community_contribute]
other = "Ако желите да се више укључите у допринос на {{ .Site.Title }}, придружите нам се:"
[community_how_to]
other = "Можете сазнати како да допринесете на {{ .Site.Title }} у нашим"
[community_guideline]
other = "Смерницама за допринос"
# Feedback
[feedback_title]
other = "Feedback"
[feedback_question]
other = "Да ли вам је ова страница била од помоћи?"
[feedback_positive]
other = "Да"
[feedback_negative]
other = "Не"

90
i18n/sr-latn.toml Normal file
View File

@ -0,0 +1,90 @@
# UI strings. Buttons and similar.
[ui_pager_prev]
other = "Prethodno"
[ui_pager_next]
other = "Naredno"
[ui_read_more]
other = "Pročitajte više"
[ui_search]
other = "Pretražite sajt…"
# Used in sentences such as "Posted in News"
[ui_in]
other = "u"
# Used in sentences such as "All Tags"
[ui_all]
other = "sve"
# Footer text
[footer_all_rights_reserved]
other = "Sva prava zadržana"
[footer_privacy_policy]
other = "Politika privatnosti"
# Post (blog, articles etc.)
[post_byline_by]
other = "Autor"
[post_created]
other = "Kreirano"
[post_last_mod]
other = "Poslednji put izmenjeno"
[post_edit_this]
other = "Uredite ovu stranicu"
[post_view_this]
other = "Pogledajte izvor stranice"
[post_create_child_page]
other = "Kreirajte podstranicu"
[post_create_issue]
other = "Kreirajte issue za dokumentaciju"
[post_create_project_issue]
other = "Kreirajte issue za projekat"
[post_posts_in]
other = "Objava u"
[post_reading_time]
other = "minuta za čitanje"
[post_less_than_a_minute_read]
other = "manje od minuta za čitanje"
# Print support
[print_printable_section]
other = "Ovo je višestrani pregled za štampanje ove sekcije."
[print_click_to_print]
other = "Kliknite ovde za štampanje"
[print_show_regular]
other = "Povratak na običan pregled ove stranice"
[print_entire_section]
other = "Odštampajte čitavu sekciju"
# Community
[community_join]
other = "Pridružite se {{ .Site.Title }} zajednici"
[community_introduce]
other = "{{ .Site.Title }} je open source projekat kojeg svako u zajednici može da koristi, unapređuje i da uživa u njemu. Voleli bismo da nam se pridružite! Ovde se možete uključiti kako biste saznali šta se dešava."
[community_learn]
other = "Naučite i povežite se"
[community_using]
other = "Već koristite ili želite da počnete koristiti {{ .Site.Title }}? Saznajte više:"
[community_develop]
other = "Razvoj i doprinos"
[community_contribute]
other = "Ako želite da se više uključite u doprinos na {{ .Site.Title }}, pridružite nam se:"
[community_how_to]
other = "Možete saznati kako da doprinesete na {{ .Site.Title }} u našim"
[community_guideline]
other = "Smernicama za doprinos"
# Feedback
[feedback_title]
other = "Feedback"
[feedback_question]
other = "Da li vam je ova stranica bila od pomoći?"
[feedback_positive]
other = "Da"
[feedback_negative]
other = "Ne"

View File

@ -1,5 +1,3 @@
# UI strings. Buttons and similar.
[ui_pager_prev]
@ -18,14 +16,17 @@ other = "Bu sitede arayın…"
[ui_in]
other = "içinde"
# Used in sentences such as "All Tags"
[ui_all]
other = "tüm"
# Footer text
[footer_all_rights_reserved]
other = "Bütün haklar saklıdır"
other = "Tüm Hakları Saklıdır"
[footer_privacy_policy]
other = "Gizlilik Politikası"
# Post (blog, articles etc.)
[post_byline_by]
other = "by"
@ -35,6 +36,8 @@ other = "Oluşturuldu"
other = "Son düzenleme"
[post_edit_this]
other = "Bu sayfayı düzenle"
[post_view_this]
other = "Sayfa kaynağını görüntüle"
[post_create_child_page]
other = "Çocuk sayfası oluştur"
[post_create_issue]
@ -46,7 +49,7 @@ other = "Gönderiler in"
[post_reading_time]
other = "minute read"
[post_less_than_a_minute_read]
other = "less than a minute"
other = "1 dakikadan az"
# Print support
[print_printable_section]
@ -60,18 +63,28 @@ other = "Bütün bölümü yazıdırın"
# Community
[community_join]
other = "Join the {{ .Site.Title }} community"
other = "{{ .Site.Title }} topluluğuna katılın"
[community_introduce]
other = "{{ .Site.Title }} is an open source project that anyone in the community can use, improve, and enjoy. We'd love you to join us! Here's a few ways to find out what's happening and get involved."
other = "{{ .Site.Title }} topluluktaki herkesin kullanabileceği, geliştirebileceği ve keyfini çıkarabileceği açık kaynaklı bir projedir. Bize katılmanızı çok isteriz! İşte neler olduğunu öğrenmenin ve dahil olmanın birkaç yolu."
[community_learn]
other = "Learn and Connect"
other = "Öğrenin ve Bağlanın"
[community_using]
other = "Using or want to use {{ .Site.Title }}? Find out more here:"
other = "{{ .Site.Title }} kullanıyor veya kullanmak mı istiyorsunuz? Daha fazlasını burada bulabilirsiniz:"
[community_develop]
other = "Develop and Contribute"
other = "Geliştirin ve Katkıda Bulunun"
[community_contribute]
other = "If you want to get more involved by contributing to {{ .Site.Title }}, join us here:"
[community_how_to]
other = "You can find out how to contribute to {{ .Site.Title }} in our"
[community_guideline]
other = "Contribution Guidelines"
other = "Katkı Yönergeleri"
# Feedback
[feedback_title]
other = "Geribildirim"
[feedback_question]
other = "Bu sayfa yararlı oldu mu?"
[feedback_positive]
other = "Evet"
[feedback_negative]
other = "Hayır"

View File

@ -7,7 +7,7 @@ other = "Попередня"
other = "Наступна"
[ui_read_more]
other = "Детальніше"
other = "Читати далі"
[ui_search]
other = "Пошук по сайту…"
@ -18,64 +18,73 @@ other = "у"
# Used in sentences such as "All Tags"
[ui_all]
other = "все"
other = "всі"
# Footer text
[footer_all_rights_reserved]
other = "Усі права захищені"
other = "Усі права захищено"
[footer_privacy_policy]
other = "Політика конфіденційності"
# Post (blog, articles etc.)
[post_byline_by]
other = "Автор"
[post_created]
other = "Створено"
[post_last_mod]
other = "Змінено"
other = "Востаннє змінено"
[post_edit_this]
other = "Відредагувати сторінку"
other = "Редагувати цю сторінку"
[post_view_this]
other = обачити джерело сторінки"
other = ереглянути джерело сторінки"
[post_create_child_page]
other = "Створити додаткову сторінку"
other = "Створити дочірню сторінку"
[post_create_issue]
other = "Запропонувати змінення документації"
other = "Створити запит щодо документації"
[post_create_project_issue]
other = "Запропонувати допрацювання по проекту"
other = "Створити запит щодо проєкту"
[post_posts_in]
other = "Публикації у"
other = "Публікації в"
[post_reading_time]
other = "хвилина читання"
other = "хв. читання"
[post_less_than_a_minute_read]
other = "менше хвилини"
# Print support
[print_printable_section]
other = "Це багатосторінковий друкований вигляд цього розділу."
other = "Це багатосторінкова версія цього розділу для друку."
[print_click_to_print]
other = "Натисність щоб друкувати"
other = "Натисніть тут, щоб надрукувати"
[print_show_regular]
other = "Повернутися до звичайного перегляду сторінки"
[print_entire_section]
other = "Друкувати увесь розділ"
other = "Надрукувати весь розділ"
# Community
[community_join]
other = "Приєднуйтесь до {{ .Site.Title }} спільноти"
other = "Приєднуйтесь до спільноти {{ .Site.Title }}"
[community_introduce]
other = "{{ .Site.Title }} - це проект з відкритим кодом, який будь-хто в спільноті може використовувати, покращувати та насолоджуватися. Ми будемо раді бачити тебе з нами! Ось декілька опцій щоб знати що відбувається та залучитись."
other = "{{ .Site.Title }} — це проєкт з відкритим вихідним кодом, яким будь-хто зі спільноти може користуватися, покращувати та насолоджуватися. Ми будемо раді, якщо ви приєднаєтеся до нас! Ось кілька способів дізнатися, що відбувається, і взяти участь."
[community_learn]
other = "Вивчай та Приєднуйся"
other = "Вивчайте та приєднуйтесь"
[community_using]
other = "Користуєшся чи хотів би користуватись {{ .Site.Title }}? Дізнайся більше тут:"
other = "Використовуєте або хочете використовувати {{ .Site.Title }}? Дізнайтеся більше тут:"
[community_develop]
other = "Розвивай та Роби внесок"
other = "Розробляйте та робіть внески"
[community_contribute]
other = "Якщо хочеш бути більш залученим, роблячи внесок у {{ .Site.Title }}, приєднуйся до нас тут:"
other = "Хочете долучитися до розвитку {{ .Site.Title }} та зробити свій внесок? Приєднуйтеся до нас тут:"
[community_how_to]
other = "Дізнайся як зробити внесок до цих документів в нашому"
other = "Дізнайтеся, як зробити внесок у {{ .Site.Title }} у наших"
[community_guideline]
other = "Рекомендації щодо внеску"
other = "Настановах з внесків"
# Feedback
[feedback_title]
other = "Зворотний зв’язок"
[feedback_question]
other = "Чи була ця сторінка корисною?"
[feedback_positive]
other = "Так"
[feedback_negative]
other = "Ні"

View File

@ -32,33 +32,33 @@ other = "隱私政策"
[post_byline_by]
other = "作者:"
[post_created]
other = "建"
other = ""
[post_last_mod]
other = "最後修改"
other = "最後更新於"
[post_edit_this]
other = "編輯此頁"
[post_view_this]
other = "查看頁面原始碼"
other = "檢視頁面原始碼"
[post_create_child_page]
other = "建子頁面"
other = "子頁面"
[post_create_issue]
other = "創建文檔議題"
other = "建立文件議題"
[post_create_project_issue]
other = "創建項目議題"
other = "建立專案議題"
[post_posts_in]
other = "張貼於"
[post_reading_time]
other = " 分鐘左右可讀完"
other = " 分鐘閱讀時間"
[post_less_than_a_minute_read]
other = "1 分鐘內可讀完"
# Print support
[print_printable_section]
other = "這是本節的多頁可列印。"
other = "這是本節的多頁可列印視。"
[print_click_to_print]
other = "點此處列印"
other = "點此處列印"
[print_show_regular]
other = "返回此頁面的常規視圖"
other = "返回此頁面的標準檢視"
[print_entire_section]
other = "列印整個章節"
@ -66,16 +66,26 @@ other = "列印整個章節"
[community_join]
other = "加入 {{ .Site.Title }} 社群"
[community_introduce]
other = "{{ .Site.Title }} 是一個開源項目,社群中的任何人都可以使用、改善和盡情使用它。我們很期待你能加入我們!下面是如何查看最近更新以及參與我們的一些方式。"
other = "{{ .Site.Title }} 是一個開放原始碼專案,社群中的任何人都可以使用、改進並享受其成果。我們非常歡迎您加入我們!以下是了解最新動態以及參與我們的一些方式。"
[community_learn]
other = "學習和溝通"
other = "學習與交流"
[community_using]
other = "正在或打算使用 {{ .Site.Title }} ?獲取更多資訊:"
other = "正在或打算使用 {{ .Site.Title }} 嗎?在此取得更多資訊:"
[community_develop]
other = "開發和貢獻"
[community_contribute]
other = "如果你想通過為 {{ .Site.Title }} 貢獻更多參與,請在此處加入我們:"
other = "如果您想透過貢獻來更深入地參與 {{ .Site.Title }},請在此處加入我們:"
[community_how_to]
other = "你可以了解如何為 {{ .Site.Title }} 做出貢獻,請參考我們的"
other = "您可以透過文件了解如何為 {{ .Site.Title }} 做出貢獻,請參考我們的"
[community_guideline]
other = "貢獻指南"
# Feedback
[feedback_title]
other = "意見回饋"
[feedback_question]
other = "這個頁面對您有幫助嗎?"
[feedback_positive]
other = "有幫助"
[feedback_negative]
other = "沒幫助"

View File

@ -1,43 +0,0 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ .Site.Title }} {{ .Title }}</title>
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{ if not $.Section }}
{{ $sections := .Site.Params.rss_sections | default (slice "blog") }}
{{ .Scratch.Set "rss_pages" (first 50 (where $.Site.RegularPages "Type" "in" $sections )) }}
{{ else }}
{{ if $.Parent.IsHome }}
{{ .Scratch.Set "rss_pages" (first 50 (where $.Site.RegularPages "Type" $.Section )) }}
{{ else }}
{{ .Scratch.Set "rss_pages" (first 50 $.Pages) }}
{{ end }}
{{ end }}
{{ range (.Scratch.Get "rss_pages") }}
<item>
<title>{{ .Section | title }}: {{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>
{{ $img := (.Resources.ByType "image").GetMatch "*featured*" }}
{{ with $img }}
{{ $img := .Resize "640x" }}
{{ printf "<![CDATA[<img src=\"%s\" width=\"%d\" height=\"%d\"/>]]>" $img.Permalink $img.Width $img.Height | safeHTML }}
{{ end }}
{{ .Content | html }}
</description>
</item>
{{ end }}
</channel>
</rss>

View File

@ -1,3 +0,0 @@
{{ define "main" -}}
{{ .Content -}}
{{ end }}

View File

@ -1,42 +0,0 @@
{{/*
This is a modified copy of
https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/google_analytics.html,
specifically this version:
https://github.com/gohugoio/hugo/blob/f7e00c039ff3cea5f991b05c1e325666004cf129/tpl/tplimpl/embedded/templates/google_analytics.html
The only differences between this copy and the original are that we've dropped:
- The `{{ if hasPrefix . "G-"}}` condition
- The `{{ else }}` block
- The `anonymize_ip` argument to the `gtag()` call, since it is superfluous.
For details, see https://github.com/gohugoio/hugo/issues/10093.
*/}}
{{- $pc := .Site.Config.Privacy.GoogleAnalytics -}}
{{- if not $pc.Disable }}{{ with .Site.GoogleAnalytics -}}
<script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script>
<script>
{{ template "__ga_js_set_doNotTrack" $ }}
if (!doNotTrack) {
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ . }}');
}
</script>
{{- end }}{{ end -}}
{{- define "__ga_js_set_doNotTrack" -}}{{/* This is also used in the async version. */}}
{{- $pc := .Site.Config.Privacy.GoogleAnalytics -}}
{{- if not $pc.RespectDoNotTrack -}}
var doNotTrack = false;
{{- else -}}
var dnt = (navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack);
var doNotTrack = (dnt == "1" || dnt == "yes");
{{- end -}}
{{- end -}}

View File

@ -1,4 +1,5 @@
{{ $links := .Site.Params.links -}}
{{ $contribUrl := .Params.contributingUrl | default "docs/contribution-guidelines" -}}
<section class="row td-box td-box--white td-box--height-auto linkbox">
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
@ -16,7 +17,7 @@
{{ end }}
<p>
{{ T "community_how_to" . }}
<a href="{{ "docs/contribution-guidelines" | relURL }}">{{ T "community_guideline" }}</a>.
<a href="{{ $contribUrl | relURL }}">{{ T "community_guideline" }}</a>.
</p>
</div>
</section>

View File

@ -14,7 +14,7 @@ this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your pag
*/
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = 'https://' + {{ .Site.DisqusShortname }} + '.disqus.com/embed.js';
s.src = 'https://' + {{ .Site.Config.Services.Disqus.Shortname }} + '.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();

View File

@ -8,7 +8,7 @@
<figure class="{{ $class }}" style="width: {{ $image.Width }}px">
<img src="{{ $image.RelPermalink }}" alt="Featured Image for {{ $p.Title }}" width="{{ $image.Width }}" height="{{ $image.Height }}">
{{ with $image.Params.byline }}
<figcaption class="mt-2 mt-md-0"><small class="text-muted">{{ . | html }}</small></figcaption>
<figcaption class="mt-2 mt-md-0"><small class="text-body-secondary">{{ . | html }}</small></figcaption>
{{ end }}
</figure>
{{ end }}

View File

@ -0,0 +1,17 @@
<footer class="td-footer row d-print-none">
<div class="container-fluid">
<div class="row mx-md-2">
<div class="td-footer__left col-6 col-sm-4 order-sm-1">
{{ partial "footer/left.html" . }}
</div>
{{- /* Trim WS */ -}}
<div class="td-footer__right col-6 col-sm-4 order-sm-3">
{{ partial "footer/right.html" . }}
</div>
{{- /* Trim WS */ -}}
<div class="td-footer__center col-12 col-sm-4 py-2 order-sm-2">
{{ partial "footer/center.html" . }}
</div>
</div>
</div>
</footer>

View File

@ -0,0 +1,15 @@
{{ partial "footer/copyright.html" . -}}
{{ with .Site.Params.privacy_policy -}}
<span class="ms-2"><a href="{{ . }}" target="_blank" rel="noopener">{{ T "footer_privacy_policy" }}</a></span>
{{- end -}}
{{ if ne .Site.Params.ui.footer_about_disable nil -}}
{{ warnf "Config parameter '.params.ui.footer_about_disable' is DEPRECATED, use '.params.ui.footer_about_enable' instead." -}}
{{ end -}}
{{ if or .Site.Params.ui.footer_about_enable (eq .Site.Params.ui.footer_about_disable false) -}}
{{ with .Site.GetPage "about" -}}
<p class="td-footer__about mt-2"><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>
{{- end -}}
{{ end -}}

View File

@ -0,0 +1,42 @@
{{ $page := .Page -}}
{{ with .Site.Params.copyright -}}
{{ $fromYear := "" -}}
{{ $toYear := "" -}}
{{ $authors := "" -}}
{{ if reflect.IsMap . -}}
{{ $fromYear = .from_year -}}
{{ $toYear = .to_year -}}
{{ $authors = .authors -}}
{{ else -}}
{{ $authors = . -}}
{{ end -}}
<span class="td-footer__copyright">&copy;
{{ with $fromYear -}}
{{ . }}&ndash;
{{- end -}}
{{ $toYear | default now.Year }}
<span class="td-footer__authors">
{{- $authors
| default (printf "%s Authors" ($.Site.Title | default "Site"))
| $page.RenderString -}}
</span>
{{- /* Trim WS */ -}}
</span>
{{- with T "footer_all_rights_reserved" -}}
<span class="td-footer__all_rights_reserved">
{{- . -}}
</span>
{{- end }}
{{- else -}}
{{ with .Site.Copyright -}}
{{/* For historical reasons we process this as HTML rather than markdown. */ -}}
<span class="td-footer__copyright">
{{- . | safeHTML -}}
</span>
{{- end -}}
{{ end -}}

View File

@ -0,0 +1,5 @@
{{ with .Site.Params.links -}}
{{ with index . "user" -}}
{{- partial "footer/links.html" . -}}
{{ end -}}
{{ end -}}

View File

@ -0,0 +1,9 @@
<ul class="td-footer__links-list">
{{ range . }}
<li class="td-footer__links-item" data-bs-toggle="tooltip" title="{{ .name }}" aria-label="{{ .name }}">
<a target="_blank" rel="noopener" href="{{ .url }}" aria-label="{{ .name }}">
<i class="{{ .icon }}"></i>
</a>
</li>
{{ end }}
</ul>

View File

@ -0,0 +1,5 @@
{{ with .Site.Params.links -}}
{{ with index . "developer" -}}
{{- partial "footer/links.html" . -}}
{{ end -}}
{{ end -}}

View File

@ -0,0 +1,30 @@
{{ $scssMain := "scss/main.scss" -}}
{{ $css := resources.Get $scssMain
| toCSS (dict "enableSourceMap" (not hugo.IsProduction)) -}}
{{/* NOTE: we only apply `postCSS` in production or for RTL languages. This
makes it snappier to develop in Chrome, but it may look sub-optimal in other
browsers. */ -}}
{{ if eq .Site.Language.LanguageDirection "rtl" -}}
{{ $css = $css
| postCSS (dict "use" "autoprefixer rtlcss" "noMap" true)
| resources.Copy (replace $scssMain "." ".rtl.") -}}
{{ else if hugo.IsProduction -}}
{{ $css = $css | postCSS -}}
{{ end -}}
{{ if hugo.IsProduction -}}
{{ $css = $css | minify | fingerprint -}}
<link rel="preload" href="{{ $css.RelPermalink }}" as="style" integrity="{{ $css.Data.Integrity }}" crossorigin="anonymous">
{{ end -}}
{{ with $css -}}
<link href="{{ .RelPermalink }}" rel="stylesheet"
{{- with .Data.Integrity }} integrity="{{ . }}" crossorigin="anonymous"{{ end -}}
>
{{ else -}}
{{ errorf "Resource not found or error building CSS: %s" $scssMain -}}
{{ end -}}
{{- /**/ -}}

View File

@ -1,3 +1,4 @@
{{/* cSpell:ignore docsearch opengraph outputformat */ -}}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{{ range .AlternativeOutputFormats -}}
@ -20,14 +21,14 @@
{{ .Site.Title -}}
{{ end -}}
</title>
<meta name="description" content="{{ template "partials/page-description.html" . }}">
{{ template "_internal/opengraph.html" . -}}
{{ template "_internal/schema.html" . -}}
{{ template "_internal/twitter_cards.html" . -}}
{{ partialCached "head-css.html" . "asdf" -}}
<meta name="description" content="{{ partial "page-description.html" . }}">
{{ partial "opengraph.html" . -}}
{{ partial "schema.html" . -}}
{{ partial "twitter_cards.html" . -}}
{{ partialCached "head-css.html" . "head-css-cache-key" -}}
<script
src="https://code.jquery.com/jquery-3.6.3.min.js"
integrity="sha512-STof4xm1wgkfm7heWqFJVn58Hm3EtS31XFaagaa8VMReCXAkQnJZ+jEy8PCC/iT18dFy95WcExNHFTqLyp72eQ=="
src="https://code.jquery.com/jquery-3.7.1.min.js"
integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g=="
crossorigin="anonymous"></script>
{{ if .Site.Params.offlineSearch -}}
<script defer
@ -46,19 +47,14 @@
{{/* To comply with GDPR, cookie consent scripts places in head-end must execute before Google Analytics is enabled */ -}}
{{ if hugo.IsProduction -}}
{{ $enableGtagForUniversalAnalytics := not .Site.Params.disableGtagForUniversalAnalytics -}}
{{ if (or $enableGtagForUniversalAnalytics (hasPrefix .Site.GoogleAnalytics "G-")) -}}
{{ template "_internal/google_analytics_gtag.html" . -}}
{{ else -}}
{{ template "_internal/google_analytics_async.html" . -}}
{{ end -}}
{{ partial "google_analytics.html" . -}}
{{ end -}}
{{ define "algolia/head" -}}
{{ if and .Site.Params.search (isset .Site.Params.search "algolia") -}}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3.5.2"
integrity="sha512-TW5eKlwwg7OfQUVBqxjp94/uqtjJJbhkRE3++XGEQjAL1n3y//QVqS3acPkwqkzInaFRtj+w05uyxDbfDXiI1A=="
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3.8.2"
integrity="sha512-l7pkV1dOURFyHCeH8I4fK9lCkQKuqhlsTCqRl3zktifDlB8oTUJ+mJPgYkK9kHpUut8j1iPquTv32t6hvTPv3g=="
crossorigin="anonymous" />
{{ end -}}

View File

View File

@ -4,8 +4,8 @@
-}}
{{ $baseURL := urls.Parse $.Site.Params.Baseurl -}}
<nav class="td-navbar navbar-dark js-navbar-scroll
{{- if $cover }} td-navbar-cover {{- end }}">
<nav class="td-navbar js-navbar-scroll
{{- if $cover }} td-navbar-cover {{- end }}" data-bs-theme="dark">
<div class="container-fluid flex-column flex-md-row">
<a class="navbar-brand" href="{{ .Site.Home.RelPermalink }}">
{{- /**/ -}}
@ -57,6 +57,11 @@
{{ partial "navbar-lang-selector.html" . -}}
</li>
{{ end -}}
{{ if .Site.Params.ui.showLightDarkModeMenu -}}
<li class="td-light-dark-menu nav-item dropdown">
{{ partial "theme-toggler" . }}
</li>
{{ end -}}
</ul>
</div>
<div class="d-none d-lg-block">

View File

@ -0,0 +1,3 @@
{{ with or .Description .Summary site.Params.description | plainify | htmlUnescape -}}
{{ trim . "\n\r\t " -}}
{{ end -}}

View File

@ -1,8 +1,8 @@
{{ if and (.GitInfo) (.Site.Params.github_repo) -}}
<div class="text-muted mt-5 pt-3 border-top">
{{ if and .GitInfo .Site.Params.github_repo -}}
<div class="td-page-meta__lastmod">
{{ T "post_last_mod" }} {{ .Lastmod.Format .Site.Params.time_format_default -}}
{{ with .GitInfo }}: {{/* Trim WS */ -}}
<a href="{{ $.Site.Params.github_repo }}/commit/{{ .Hash }}">
<a data-proofer-ignore href="{{ $.Site.Params.github_repo }}/commit/{{ .Hash }}">
{{- .Subject }} ({{ .AbbreviatedHash }}) {{- /* Trim WS */ -}}
</a>
{{- end }}

View File

@ -0,0 +1,52 @@
{{/* cSpell:ignore querify subdir */ -}}
{{/* Class names ending with `--KIND` are deprecated in favor of `__KIND`, but we're keeping them for a few releases after 0.9.0 */ -}}
{{ if .File -}}
{{ $path := strings.TrimPrefix (add hugo.WorkingDir "/") $.File.Filename -}}
{{ $gh_repo := $.Param "github_repo" -}}
{{ $gh_url := $.Param "github_url" -}}
{{ $gh_subdir := $.Param "github_subdir" | default "" -}}
{{ $gh_project_repo := $.Param "github_project_repo" -}}
{{ $gh_branch := $.Param "github_branch" | default "main" -}}
<div class="td-page-meta ms-2 pb-1 pt-2 mb-0">
{{ if $gh_url -}}
{{ warnf "Warning: use of `github_url` is deprecated. For details, see https://www.docsy.dev/docs/adding-content/repository-links/#github_url-optional" -}}
<a href="{{ $gh_url }}" target="_blank"><i class="fa-solid fa-pen-to-square fa-fw"></i> {{ T "post_edit_this" }}</a>
{{ else if $gh_repo -}}
{{/* Adjust $path based on path_base_for_github_subdir */ -}}
{{ $ghs_base := $.Param "path_base_for_github_subdir" -}}
{{ $ghs_rename := "" -}}
{{ if reflect.IsMap $ghs_base -}}
{{ $ghs_rename = $ghs_base.to -}}
{{ $ghs_base = $ghs_base.from -}}
{{ end -}}
{{ with $ghs_base -}}
{{ $path = replaceRE . $ghs_rename $path -}}
{{ end -}}
{{ $gh_repo_path := printf "%s/%s/%s" $gh_branch $gh_subdir $path -}}
{{ $gh_repo_path = replaceRE "//+" "/" $gh_repo_path -}}
{{ $viewURL := printf "%s/tree/%s" $gh_repo $gh_repo_path -}}
{{ $editURL := printf "%s/edit/%s" $gh_repo $gh_repo_path -}}
{{ $issuesURL := printf "%s/issues/new?title=%s" $gh_repo (safeURL $.Title ) -}}
{{ $newPageStub := resources.Get "stubs/new-page-template.md" -}}
{{ $newPageQS := querify "value" $newPageStub.Content "filename" "change-me.md" | safeURL -}}
{{ $newPageURL := printf "%s/new/%s?%s" $gh_repo (path.Dir $gh_repo_path) $newPageQS -}}
<a href="{{ $viewURL }}" class="td-page-meta--view td-page-meta__view" target="_blank" rel="noopener"><i class="fa-solid fa-file-lines fa-fw"></i> {{ T "post_view_this" }}</a>
<a href="{{ $editURL }}" class="td-page-meta--edit td-page-meta__edit" target="_blank" rel="noopener"><i class="fa-solid fa-pen-to-square fa-fw"></i> {{ T "post_edit_this" }}</a>
<a href="{{ $newPageURL }}" class="td-page-meta--child td-page-meta__child" target="_blank" rel="noopener"><i class="fa-solid fa-pen-to-square fa-fw"></i> {{ T "post_create_child_page" }}</a>
<a href="{{ $issuesURL }}" class="td-page-meta--issue td-page-meta__issue" target="_blank" rel="noopener"><i class="fa-solid fa-list-check fa-fw"></i> {{ T "post_create_issue" }}</a>
{{ with $gh_project_repo -}}
{{ $project_issueURL := printf "%s/issues/new" . -}}
<a href="{{ $project_issueURL }}" class="td-page-meta--project td-page-meta__project-issue" target="_blank" rel="noopener"><i class="fa-solid fa-list-check fa-fw"></i> {{ T "post_create_project_issue" }}</a>
{{ end -}}
{{ end -}}
{{ with .CurrentSection.AlternativeOutputFormats.Get "print" -}}
<a id="print" href="{{ .RelPermalink | safeURL }}"><i class="fa-solid fa-print fa-fw"></i> {{ T "print_entire_section" }}</a>
{{ end }}
</div>
{{ end -}}

View File

@ -6,7 +6,7 @@
<div class="td-byline mb-4">
{{ with .Params.author }}{{ T "post_byline_by" }} <b>{{ . | markdownify }}</b> |{{ end}}
{{if .Date }}
<time datetime="{{ .Date.Format "2006-01-02" }}" class="text-muted">{{ .Date.Format .Site.Params.time_format_blog }}</time>
<time datetime="{{ .Date.Format "2006-01-02" }}" class="text-body-secondary">{{ .Date.Format .Site.Params.time_format_blog }}</time>
{{ end }}
</div>
{{ .Content }}

View File

@ -1,6 +1,6 @@
{{ $tpl := printf "print/content-%s.html" .Page.Type }}
{{ if templates.Exists (printf "partials/%s" $tpl) }}
{{ if templates.Exists (printf "_partials/%s" $tpl) }}
{{ partial $tpl . }}
{{ else -}}
{{ $break := cond .DoPageBreak "page-break-before: always" "" -}}

View File

@ -1,7 +1,7 @@
{{/* Use the title and description of the first page to begin the document */}}
{{ $tpl := printf "print/page-heading-%s.html" .Page.Type }}
{{ if templates.Exists (printf "partials/%s" $tpl) }}
{{ if templates.Exists (printf "_partials/%s" $tpl) }}
{{ partial $tpl . }}
{{ else -}}
<h1 class="title">{{ .Title }}</h1>

Some files were not shown because too many files have changed in this diff Show More