@dino-ovum/theme 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +22 -2
- package/package.json +36 -3
- package/src/app/Root.jsx +5 -0
- package/src/app/components/DocumentCategoryPage.jsx +21 -0
- package/src/app/components/DocumentPagination.jsx +58 -0
- package/src/app/components/DocumentTable.jsx +116 -0
- package/src/app/components/HomeHeading.jsx +34 -0
- package/src/app/components/LibraryLayout.jsx +36 -0
- package/src/app/components/SpaceOverview.jsx +17 -0
- package/src/app/components/Updates.jsx +137 -0
- package/src/app/components/navigation/Breadcrumbs.jsx +52 -0
- package/src/app/components/navigation/ColorModeToggle.jsx +66 -0
- package/src/app/components/navigation/LanguageDropdown.jsx +108 -0
- package/src/app/components/navigation/LibraryNavigation.jsx +20 -0
- package/src/app/components/navigation/MobileNavigation.jsx +12 -0
- package/src/app/components/navigation/RecentUpdatesLink.jsx +36 -0
- package/src/app/components/navigation/SidebarToggle.jsx +60 -0
- package/src/app/components/ui/DocumentDate.jsx +25 -0
- package/src/app/components/ui/FilterChip.jsx +14 -0
- package/src/app/components/ui/TopicBadge.jsx +14 -0
- package/src/app/hooks/useDocumentTable.js +60 -0
- package/src/app/hooks/useUpdates.js +23 -0
- package/src/app/logic/document-breadcrumbs.js +24 -0
- package/src/app/logic/document-dates.js +19 -0
- package/src/app/logic/document-list.js +15 -0
- package/src/app/logic/document-location.js +19 -0
- package/src/app/logic/document-taxonomy.js +10 -0
- package/src/app/logic/pagination.js +24 -0
- package/src/app/logic/update-groups.js +18 -0
- package/src/app/providers/AppProviders.jsx +5 -0
- package/src/app/providers/SidebarVisibility.jsx +19 -0
- package/src/app/routes.js +15 -0
- package/src/app/styles/components/DocumentCategoryPage.module.scss +50 -0
- package/src/app/styles/components/DocumentPagination.module.scss +45 -0
- package/src/app/styles/components/DocumentTable.module.scss +188 -0
- package/src/app/styles/components/LibraryLayout.module.scss +59 -0
- package/src/app/styles/components/Updates.module.scss +102 -0
- package/src/app/styles/components/navigation/Breadcrumbs.module.scss +5 -0
- package/src/app/styles/components/navigation/LanguageDropdown.module.scss +49 -0
- package/src/app/styles/components/navigation/MobileNavigation.module.scss +5 -0
- package/src/app/styles/components/navigation/NavigationControls.module.scss +70 -0
- package/src/app/styles/components/ui/FilterChip.module.scss +28 -0
- package/src/app/styles/components/ui/TopicBadge.module.scss +42 -0
- package/src/app/styles/custom.scss +7 -0
- package/src/app/styles/globals.css +64 -0
- package/src/app/styles/pages/home.scss +92 -0
- package/src/app/styles/theme/navigation.scss +56 -0
- package/src/app/styles/theme/tags.css +21 -0
- package/src/app/styles/tokens/_breakpoints.scss +4 -0
- package/src/app/styles/tokens/colors.css +62 -0
- package/src/app/styles/tokens/layout.css +20 -0
- package/src/app/styles/tokens/typography.css +11 -0
- package/src/assets/fonts/pretendard/LICENSE +94 -0
- package/src/assets/fonts/pretendard/PretendardStd-Bold.woff2 +0 -0
- package/src/assets/fonts/pretendard/README.md +8 -0
- package/src/index.js +48 -0
- package/src/theme/ColorModeToggle/index.jsx +1 -0
- package/src/theme/DinoOvum/DocumentTable.jsx +1 -0
- package/src/theme/DinoOvum/HomeHeading.jsx +1 -0
- package/src/theme/DinoOvum/LibraryLayout.jsx +1 -0
- package/src/theme/DinoOvum/Updates.jsx +1 -0
- package/src/theme/DinoOvum/UpdatesPage.jsx +20 -0
- package/src/theme/DocBreadcrumbs/index.jsx +1 -0
- package/src/theme/DocCardList/index.jsx +18 -0
- package/src/theme/DocItem/Layout/index.jsx +17 -0
- package/src/theme/DocRoot/Layout/index.jsx +1 -0
- package/src/theme/DocSidebarItem/Category/index.jsx +15 -0
- package/src/theme/Navbar/MobileSidebar/PrimaryMenu/index.jsx +1 -0
- package/src/theme/Navbar/Search/index.jsx +13 -0
- package/src/theme/NavbarItem/ComponentTypes.jsx +11 -0
- package/src/theme/Root.jsx +1 -0
- package/src/translations/ja.json +92 -0
- package/src/translations/ko.json +92 -0
- package/src/utils.js +4 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@use '../tokens/breakpoints' as breakpoints;
|
|
2
|
+
|
|
3
|
+
.navbar__brand {
|
|
4
|
+
gap: 0.5rem;
|
|
5
|
+
margin-right: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.navbar__logo {
|
|
9
|
+
height: 30px;
|
|
10
|
+
margin-right: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.navbar__logo img {
|
|
14
|
+
width: 30px;
|
|
15
|
+
height: 30px;
|
|
16
|
+
border-radius: 8px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.navbar__title {
|
|
20
|
+
font-family: var(--library-font-family-brand);
|
|
21
|
+
font-size: var(--library-font-size-brand);
|
|
22
|
+
font-weight: 700;
|
|
23
|
+
letter-spacing: -0.045em;
|
|
24
|
+
line-height: var(--library-line-height-brand);
|
|
25
|
+
padding-block: 0.125rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.navbar__toggle {
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@media (width >= breakpoints.$desktop) {
|
|
33
|
+
.theme-layout-navbar-left {
|
|
34
|
+
flex: 0 0 calc(var(--library-sidebar-width) - var(--ifm-navbar-padding-horizontal));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@media (width <= breakpoints.$tablet) {
|
|
39
|
+
.navbar__title {
|
|
40
|
+
font-size: var(--library-font-size-brand-compact);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.theme-layout-navbar-left {
|
|
44
|
+
flex: 1 1 auto;
|
|
45
|
+
min-width: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.theme-layout-navbar-right {
|
|
49
|
+
flex: 0 0 auto;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[data-theme='light'] .breadcrumbs__item--active .breadcrumbs__link {
|
|
54
|
+
background: var(--ifm-color-primary);
|
|
55
|
+
color: var(--library-on-accent);
|
|
56
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[data-theme='light'] a[rel='tag'] {
|
|
2
|
+
border: 1px solid var(--ifm-color-primary);
|
|
3
|
+
border-radius: 999px;
|
|
4
|
+
background: var(--ifm-color-primary);
|
|
5
|
+
color: var(--library-on-accent);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
[data-theme='light'] a[rel='tag']::before,
|
|
9
|
+
[data-theme='light'] a[rel='tag']::after {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[data-theme='light'] a[rel='tag']:hover {
|
|
14
|
+
border-color: var(--ifm-color-primary-dark);
|
|
15
|
+
background: var(--ifm-color-primary-dark);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[data-theme='light'] a[rel='tag']:focus-visible {
|
|
19
|
+
outline: 2px solid var(--ifm-color-primary);
|
|
20
|
+
outline-offset: 3px;
|
|
21
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--ifm-background-color: #f5f5f2;
|
|
3
|
+
--ifm-background-surface-color: #fafaf7;
|
|
4
|
+
--ifm-color-primary: #2e8555;
|
|
5
|
+
--ifm-color-primary-dark: #29784c;
|
|
6
|
+
--ifm-color-primary-darker: #277148;
|
|
7
|
+
--ifm-color-primary-darkest: #205d3b;
|
|
8
|
+
--ifm-color-primary-light: #33925d;
|
|
9
|
+
--ifm-color-primary-lighter: #359962;
|
|
10
|
+
--ifm-color-primary-lightest: #3cad6e;
|
|
11
|
+
--docusaurus-highlighted-code-line-bg: rgb(0 0 0 / 10%);
|
|
12
|
+
--library-on-accent: #fff;
|
|
13
|
+
--library-control-active-bg: var(--ifm-color-primary);
|
|
14
|
+
--library-control-active-fg: #fff;
|
|
15
|
+
--library-status-new-bg: var(--ifm-color-primary);
|
|
16
|
+
--library-status-new-fg: var(--library-on-accent);
|
|
17
|
+
--library-status-updated-bg: #475569;
|
|
18
|
+
--library-status-updated-fg: var(--library-on-accent);
|
|
19
|
+
--library-badge-0-bg: #dbeafe;
|
|
20
|
+
--library-badge-0-fg: #1e40af;
|
|
21
|
+
--library-badge-1-bg: #ccfbf1;
|
|
22
|
+
--library-badge-1-fg: #115e59;
|
|
23
|
+
--library-badge-2-bg: #ede9fe;
|
|
24
|
+
--library-badge-2-fg: #5b21b6;
|
|
25
|
+
--library-badge-3-bg: #fef3c7;
|
|
26
|
+
--library-badge-3-fg: #92400e;
|
|
27
|
+
--library-badge-4-bg: #ffe4e6;
|
|
28
|
+
--library-badge-4-fg: #9f1239;
|
|
29
|
+
--library-badge-5-bg: #e2e8f0;
|
|
30
|
+
--library-badge-5-fg: #334155;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
[data-theme='dark'] {
|
|
34
|
+
--ifm-background-color: #1b1b1d;
|
|
35
|
+
--ifm-background-surface-color: #242526;
|
|
36
|
+
--ifm-color-primary: #25c2a0;
|
|
37
|
+
--ifm-color-primary-dark: #21af90;
|
|
38
|
+
--ifm-color-primary-darker: #1fa588;
|
|
39
|
+
--ifm-color-primary-darkest: #1a8870;
|
|
40
|
+
--ifm-color-primary-light: #29d5b0;
|
|
41
|
+
--ifm-color-primary-lighter: #32d8b4;
|
|
42
|
+
--ifm-color-primary-lightest: #4fddbf;
|
|
43
|
+
--docusaurus-highlighted-code-line-bg: rgb(0 0 0 / 30%);
|
|
44
|
+
--library-on-accent: #102a23;
|
|
45
|
+
--library-control-active-bg: #21765f;
|
|
46
|
+
--library-status-new-bg: #164c3b;
|
|
47
|
+
--library-status-new-fg: #bbf7d0;
|
|
48
|
+
--library-status-updated-bg: var(--library-badge-5-bg);
|
|
49
|
+
--library-status-updated-fg: var(--library-badge-5-fg);
|
|
50
|
+
--library-badge-0-bg: #1e3a5f;
|
|
51
|
+
--library-badge-0-fg: #bfdbfe;
|
|
52
|
+
--library-badge-1-bg: #134e4a;
|
|
53
|
+
--library-badge-1-fg: #99f6e4;
|
|
54
|
+
--library-badge-2-bg: #3b2362;
|
|
55
|
+
--library-badge-2-fg: #ddd6fe;
|
|
56
|
+
--library-badge-3-bg: #5b3b13;
|
|
57
|
+
--library-badge-3-fg: #fde68a;
|
|
58
|
+
--library-badge-4-bg: #591f35;
|
|
59
|
+
--library-badge-4-fg: #fecdd3;
|
|
60
|
+
--library-badge-5-bg: #334155;
|
|
61
|
+
--library-badge-5-fg: #e2e8f0;
|
|
62
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--library-sidebar-width: 300px;
|
|
3
|
+
--library-content-gutter: clamp(1rem, 6vw, 6rem);
|
|
4
|
+
--library-content-padding-top: 1rem;
|
|
5
|
+
--library-content-padding-bottom: 2rem;
|
|
6
|
+
--library-content-height: calc(
|
|
7
|
+
var(--library-viewport-height) - var(--ifm-navbar-height) - var(--library-content-padding-top) -
|
|
8
|
+
var(--library-content-padding-bottom)
|
|
9
|
+
);
|
|
10
|
+
--doc-sidebar-width: var(--library-sidebar-width);
|
|
11
|
+
--library-motion-duration: 180ms;
|
|
12
|
+
--library-motion-easing: ease-out;
|
|
13
|
+
--library-viewport-height: 100vh;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@supports (height: 100dvh) {
|
|
17
|
+
:root {
|
|
18
|
+
--library-viewport-height: 100dvh;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--ifm-font-family-base: system-ui, -apple-system, blinkmacsystemfont, 'Segoe UI', sans-serif;
|
|
3
|
+
--ifm-line-height-base: 1.65;
|
|
4
|
+
--ifm-heading-line-height: 1.3;
|
|
5
|
+
--ifm-code-font-size: 95%;
|
|
6
|
+
--library-font-family-brand: pretendard, system-ui, sans-serif;
|
|
7
|
+
--library-font-size-brand: 1.25rem;
|
|
8
|
+
--library-font-size-brand-compact: 1.125rem;
|
|
9
|
+
--library-line-height-brand: 1.35;
|
|
10
|
+
--library-line-height-compact: 1.4;
|
|
11
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
Copyright (c) 2021, Kil Hyung-jin (https://github.com/orioncactus/pretendard),
|
|
2
|
+
with Reserved Font Name Pretendard.
|
|
3
|
+
|
|
4
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
5
|
+
This license is copied below, and is also available with a FAQ at:
|
|
6
|
+
https://scripts.sil.org/OFL
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
-----------------------------------------------------------
|
|
10
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
11
|
+
-----------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
PREAMBLE
|
|
14
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
15
|
+
development of collaborative font projects, to support the font creation
|
|
16
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
17
|
+
open framework in which fonts may be shared and improved in partnership
|
|
18
|
+
with others.
|
|
19
|
+
|
|
20
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
21
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
22
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
23
|
+
redistributed and/or sold with any software provided that any reserved
|
|
24
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
25
|
+
however, cannot be released under any other type of license. The
|
|
26
|
+
requirement for fonts to remain under this license does not apply
|
|
27
|
+
to any document created using the fonts or their derivatives.
|
|
28
|
+
|
|
29
|
+
DEFINITIONS
|
|
30
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
31
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
32
|
+
include source files, build scripts and documentation.
|
|
33
|
+
|
|
34
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
35
|
+
copyright statement(s).
|
|
36
|
+
|
|
37
|
+
"Original Version" refers to the collection of Font Software components as
|
|
38
|
+
distributed by the Copyright Holder(s).
|
|
39
|
+
|
|
40
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
41
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
42
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
43
|
+
new environment.
|
|
44
|
+
|
|
45
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
46
|
+
writer or other person who contributed to the Font Software.
|
|
47
|
+
|
|
48
|
+
PERMISSION & CONDITIONS
|
|
49
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
50
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
51
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
52
|
+
Software, subject to the following conditions:
|
|
53
|
+
|
|
54
|
+
1) Neither the Font Software nor any of its individual components,
|
|
55
|
+
in Original or Modified Versions, may be sold by itself.
|
|
56
|
+
|
|
57
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
58
|
+
redistributed and/or sold with any software, provided that each copy
|
|
59
|
+
contains the above copyright notice and this license. These can be
|
|
60
|
+
included either as stand-alone text files, human-readable headers or
|
|
61
|
+
in the appropriate machine-readable metadata fields within text or
|
|
62
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
63
|
+
|
|
64
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
65
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
66
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
67
|
+
presented to the users.
|
|
68
|
+
|
|
69
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
70
|
+
Software shall not be used to promote, endorse or advertise any
|
|
71
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
72
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
73
|
+
permission.
|
|
74
|
+
|
|
75
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
76
|
+
must be distributed entirely under this license, and must not be
|
|
77
|
+
distributed under any other license. The requirement for fonts to
|
|
78
|
+
remain under this license does not apply to any document created
|
|
79
|
+
using the Font Software.
|
|
80
|
+
|
|
81
|
+
TERMINATION
|
|
82
|
+
This license becomes null and void if any of the above conditions are
|
|
83
|
+
not met.
|
|
84
|
+
|
|
85
|
+
DISCLAIMER
|
|
86
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
87
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
88
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
89
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
90
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
91
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
92
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
93
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
94
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Pretendard wordmark font
|
|
2
|
+
|
|
3
|
+
The header uses Pretendard Std Bold 1.3.9, the official Latin variant of
|
|
4
|
+
Pretendard, for the site title.
|
|
5
|
+
|
|
6
|
+
- Source: https://github.com/orioncactus/pretendard/tree/v1.3.9/packages/pretendard-std
|
|
7
|
+
- Font: `dist/web/static/woff2/PretendardStd-Bold.woff2`
|
|
8
|
+
- License: SIL Open Font License 1.1, included in `LICENSE`.
|
package/src/index.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {readFileSync} from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import {fileURLToPath} from 'node:url';
|
|
4
|
+
|
|
5
|
+
export default function dinoTheme(context, options = {}) {
|
|
6
|
+
const sourceDirectory = fileURLToPath(new URL('./', import.meta.url));
|
|
7
|
+
return {
|
|
8
|
+
name: 'dino-ovum-theme',
|
|
9
|
+
configureWebpack(_configuration, isServer, {getJSLoader}) {
|
|
10
|
+
// Docusaurus 3.10.1 only transpiles dependencies with "docusaurus" in
|
|
11
|
+
// their name. Workspace sources already use its normal JS rule.
|
|
12
|
+
if (!sourceDirectory.split(path.sep).includes('node_modules')) return {};
|
|
13
|
+
return {
|
|
14
|
+
module: {
|
|
15
|
+
rules: [
|
|
16
|
+
{
|
|
17
|
+
test: /\.[jt]sx?$/i,
|
|
18
|
+
include: sourceDirectory,
|
|
19
|
+
use: [getJSLoader({isServer})],
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
getThemePath() {
|
|
26
|
+
return fileURLToPath(new URL('./theme', import.meta.url));
|
|
27
|
+
},
|
|
28
|
+
getClientModules() {
|
|
29
|
+
const customCss = options.customCss ?? [];
|
|
30
|
+
return [
|
|
31
|
+
fileURLToPath(new URL('./app/styles/custom.scss', import.meta.url)),
|
|
32
|
+
...(Array.isArray(customCss) ? customCss : [customCss]).map((filename) =>
|
|
33
|
+
path.resolve(context.siteDir, filename),
|
|
34
|
+
),
|
|
35
|
+
];
|
|
36
|
+
},
|
|
37
|
+
getDefaultCodeTranslationMessages() {
|
|
38
|
+
const locale = context.i18n.currentLocale.split('-')[0];
|
|
39
|
+
if (!['ko', 'ja'].includes(locale)) return {};
|
|
40
|
+
const translations = JSON.parse(
|
|
41
|
+
readFileSync(new URL(`./translations/${locale}.json`, import.meta.url), 'utf8'),
|
|
42
|
+
);
|
|
43
|
+
return Object.fromEntries(
|
|
44
|
+
Object.entries(translations).map(([key, value]) => [key, value.message]),
|
|
45
|
+
);
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {default} from '../../app/components/navigation/ColorModeToggle.jsx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {default} from '../../app/components/DocumentTable.jsx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {default} from '../../app/components/HomeHeading.jsx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {default} from '../../app/components/LibraryLayout.jsx';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {default} from '../../app/components/Updates.jsx';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Layout from '@theme/Layout';
|
|
2
|
+
import {translate} from '@docusaurus/Translate';
|
|
3
|
+
import LibraryLayout from '@theme/DinoOvum/LibraryLayout';
|
|
4
|
+
import Updates from '@theme/DinoOvum/Updates';
|
|
5
|
+
|
|
6
|
+
export default function UpdatesPage() {
|
|
7
|
+
return (
|
|
8
|
+
<Layout
|
|
9
|
+
title={translate({id: 'docnest.updates.title', message: 'Recent Updates'})}
|
|
10
|
+
description={translate({
|
|
11
|
+
id: 'docnest.updates.description',
|
|
12
|
+
message: 'Browse new and updated documents by date and document space.',
|
|
13
|
+
})}
|
|
14
|
+
>
|
|
15
|
+
<LibraryLayout>
|
|
16
|
+
<Updates />
|
|
17
|
+
</LibraryLayout>
|
|
18
|
+
</Layout>
|
|
19
|
+
);
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {default} from '../../app/components/navigation/Breadcrumbs.jsx';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {useLocation} from '@docusaurus/router';
|
|
2
|
+
import {usePluginData} from '@docusaurus/useGlobalData';
|
|
3
|
+
import OriginalDocCardList from '@theme-init/DocCardList';
|
|
4
|
+
import DocumentTable from '../../app/components/DocumentTable.jsx';
|
|
5
|
+
import {findDocumentByRoute} from '../../app/logic/document-list.js';
|
|
6
|
+
|
|
7
|
+
export default function DocCardList(props) {
|
|
8
|
+
const {pathname} = useLocation();
|
|
9
|
+
const {documentEntries} = usePluginData('library-navigation');
|
|
10
|
+
const current = findDocumentByRoute(documentEntries, pathname);
|
|
11
|
+
if (!current?.isIndex || !current.directory) return <OriginalDocCardList {...props} />;
|
|
12
|
+
return (
|
|
13
|
+
<DocumentTable
|
|
14
|
+
key={current.directory}
|
|
15
|
+
directory={current.directory}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {useDoc} from '@docusaurus/plugin-content-docs/client';
|
|
2
|
+
import OriginalDocItemLayout from '@theme-init/DocItem/Layout';
|
|
3
|
+
import DocumentCategoryPage from '../../../app/components/DocumentCategoryPage.jsx';
|
|
4
|
+
import {documentLocation} from '../../../app/logic/document-location.js';
|
|
5
|
+
|
|
6
|
+
export default function DocItemLayout(props) {
|
|
7
|
+
const {metadata} = useDoc();
|
|
8
|
+
const {directory, isDocumentCategory} = documentLocation(metadata.source, metadata.sourceDirName);
|
|
9
|
+
if (!isDocumentCategory) return <OriginalDocItemLayout {...props} />;
|
|
10
|
+
return (
|
|
11
|
+
<DocumentCategoryPage
|
|
12
|
+
directory={directory}
|
|
13
|
+
title={metadata.title}
|
|
14
|
+
description={metadata.description}
|
|
15
|
+
/>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {default} from '../../../app/components/LibraryLayout.jsx';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import OriginalCategory from '@theme-init/DocSidebarItem/Category';
|
|
2
|
+
|
|
3
|
+
export default function Category(props) {
|
|
4
|
+
return (
|
|
5
|
+
<OriginalCategory
|
|
6
|
+
{...props}
|
|
7
|
+
onKeyDown={(event) => {
|
|
8
|
+
if (event.key === ' ' && event.currentTarget.getAttribute('role') === 'button') {
|
|
9
|
+
event.preventDefault();
|
|
10
|
+
event.currentTarget.click();
|
|
11
|
+
}
|
|
12
|
+
}}
|
|
13
|
+
/>
|
|
14
|
+
);
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {default} from '../../../../app/components/navigation/MobileNavigation.jsx';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import OriginalNavbarSearch from '@theme-init/Navbar/Search';
|
|
2
|
+
import styles from '../../../app/styles/components/navigation/NavigationControls.module.scss';
|
|
3
|
+
|
|
4
|
+
// Keep search in the header flow so its mobile absolute position cannot cover
|
|
5
|
+
// the adjacent Recent Updates shortcut.
|
|
6
|
+
export default function NavbarSearch({className, ...props}) {
|
|
7
|
+
return (
|
|
8
|
+
<OriginalNavbarSearch
|
|
9
|
+
{...props}
|
|
10
|
+
className={`${styles['search-container']} ${className ?? ''}`}
|
|
11
|
+
/>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import ComponentTypes from '@theme-init/NavbarItem/ComponentTypes';
|
|
2
|
+
import SidebarToggle from '../../app/components/navigation/SidebarToggle.jsx';
|
|
3
|
+
import RecentUpdatesLink from '../../app/components/navigation/RecentUpdatesLink.jsx';
|
|
4
|
+
import LanguageDropdown from '../../app/components/navigation/LanguageDropdown.jsx';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
...ComponentTypes,
|
|
8
|
+
'custom-sidebarToggle': SidebarToggle,
|
|
9
|
+
'custom-recentUpdates': RecentUpdatesLink,
|
|
10
|
+
'custom-languageDropdown': LanguageDropdown,
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {default} from '../app/Root.jsx';
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"docnest.language.label": {
|
|
3
|
+
"message": "言語を変更"
|
|
4
|
+
},
|
|
5
|
+
"docnest.breadcrumbs": {
|
|
6
|
+
"message": "パンくずリスト"
|
|
7
|
+
},
|
|
8
|
+
"docnest.navigation": {
|
|
9
|
+
"message": "ドキュメントナビゲーション"
|
|
10
|
+
},
|
|
11
|
+
"docnest.navigation.collapse": {
|
|
12
|
+
"message": "ナビゲーションを閉じる"
|
|
13
|
+
},
|
|
14
|
+
"docnest.navigation.expand": {
|
|
15
|
+
"message": "ナビゲーションを開く"
|
|
16
|
+
},
|
|
17
|
+
"docnest.theme.light": {
|
|
18
|
+
"message": "ライトモードに切り替え"
|
|
19
|
+
},
|
|
20
|
+
"docnest.theme.dark": {
|
|
21
|
+
"message": "ダークモードに切り替え"
|
|
22
|
+
},
|
|
23
|
+
"docnest.documents.in": {
|
|
24
|
+
"message": "{directory} の文書"
|
|
25
|
+
},
|
|
26
|
+
"docnest.all": {
|
|
27
|
+
"message": "すべて"
|
|
28
|
+
},
|
|
29
|
+
"docnest.documents.count": {
|
|
30
|
+
"message": "全 {total} 件中 {start}–{end}"
|
|
31
|
+
},
|
|
32
|
+
"docnest.documents.empty": {
|
|
33
|
+
"message": "文書がありません"
|
|
34
|
+
},
|
|
35
|
+
"docnest.documents.caption": {
|
|
36
|
+
"message": "{directory} のすべての文書"
|
|
37
|
+
},
|
|
38
|
+
"docnest.document": {
|
|
39
|
+
"message": "文書"
|
|
40
|
+
},
|
|
41
|
+
"docnest.category": {
|
|
42
|
+
"message": "カテゴリ"
|
|
43
|
+
},
|
|
44
|
+
"docnest.updated": {
|
|
45
|
+
"message": "更新"
|
|
46
|
+
},
|
|
47
|
+
"docnest.pagination": {
|
|
48
|
+
"message": "文書のページ"
|
|
49
|
+
},
|
|
50
|
+
"docnest.pagination.previous": {
|
|
51
|
+
"message": "前のページ"
|
|
52
|
+
},
|
|
53
|
+
"docnest.pagination.next": {
|
|
54
|
+
"message": "次のページ"
|
|
55
|
+
},
|
|
56
|
+
"docnest.pagination.page": {
|
|
57
|
+
"message": "{number} ページ"
|
|
58
|
+
},
|
|
59
|
+
"docnest.updates.title": {
|
|
60
|
+
"message": "最近の更新"
|
|
61
|
+
},
|
|
62
|
+
"docnest.updates.description": {
|
|
63
|
+
"message": "新規、更新された文書を日付とドキュメントスペースで探せます。"
|
|
64
|
+
},
|
|
65
|
+
"docnest.updates.range": {
|
|
66
|
+
"message": "期間"
|
|
67
|
+
},
|
|
68
|
+
"docnest.updates.days": {
|
|
69
|
+
"message": "過去 {days} 日間"
|
|
70
|
+
},
|
|
71
|
+
"docnest.updates.allTime": {
|
|
72
|
+
"message": "すべての期間"
|
|
73
|
+
},
|
|
74
|
+
"docnest.updates.spaces": {
|
|
75
|
+
"message": "ドキュメントスペース"
|
|
76
|
+
},
|
|
77
|
+
"docnest.updates.newOnly": {
|
|
78
|
+
"message": "新しい文書のみ"
|
|
79
|
+
},
|
|
80
|
+
"docnest.updates.summary": {
|
|
81
|
+
"message": "日付: {dates} 件、文書: {total} 件"
|
|
82
|
+
},
|
|
83
|
+
"docnest.updates.dayCount": {
|
|
84
|
+
"message": "、文書: {total} 件"
|
|
85
|
+
},
|
|
86
|
+
"docnest.new": {
|
|
87
|
+
"message": "新規"
|
|
88
|
+
},
|
|
89
|
+
"docnest.updates.empty": {
|
|
90
|
+
"message": "条件に一致する文書がありません。"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"docnest.language.label": {
|
|
3
|
+
"message": "언어 변경"
|
|
4
|
+
},
|
|
5
|
+
"docnest.breadcrumbs": {
|
|
6
|
+
"message": "탐색 경로"
|
|
7
|
+
},
|
|
8
|
+
"docnest.navigation": {
|
|
9
|
+
"message": "문서 탐색"
|
|
10
|
+
},
|
|
11
|
+
"docnest.navigation.collapse": {
|
|
12
|
+
"message": "탐색 패널 접기"
|
|
13
|
+
},
|
|
14
|
+
"docnest.navigation.expand": {
|
|
15
|
+
"message": "탐색 패널 펼치기"
|
|
16
|
+
},
|
|
17
|
+
"docnest.theme.light": {
|
|
18
|
+
"message": "라이트 모드로 전환"
|
|
19
|
+
},
|
|
20
|
+
"docnest.theme.dark": {
|
|
21
|
+
"message": "다크 모드로 전환"
|
|
22
|
+
},
|
|
23
|
+
"docnest.documents.in": {
|
|
24
|
+
"message": "{directory}의 문서"
|
|
25
|
+
},
|
|
26
|
+
"docnest.all": {
|
|
27
|
+
"message": "전체"
|
|
28
|
+
},
|
|
29
|
+
"docnest.documents.count": {
|
|
30
|
+
"message": "전체 {total}개 중 {start}–{end}"
|
|
31
|
+
},
|
|
32
|
+
"docnest.documents.empty": {
|
|
33
|
+
"message": "문서가 없습니다"
|
|
34
|
+
},
|
|
35
|
+
"docnest.documents.caption": {
|
|
36
|
+
"message": "{directory}의 모든 문서"
|
|
37
|
+
},
|
|
38
|
+
"docnest.document": {
|
|
39
|
+
"message": "문서"
|
|
40
|
+
},
|
|
41
|
+
"docnest.category": {
|
|
42
|
+
"message": "분류"
|
|
43
|
+
},
|
|
44
|
+
"docnest.updated": {
|
|
45
|
+
"message": "수정"
|
|
46
|
+
},
|
|
47
|
+
"docnest.pagination": {
|
|
48
|
+
"message": "문서 페이지"
|
|
49
|
+
},
|
|
50
|
+
"docnest.pagination.previous": {
|
|
51
|
+
"message": "이전 페이지"
|
|
52
|
+
},
|
|
53
|
+
"docnest.pagination.next": {
|
|
54
|
+
"message": "다음 페이지"
|
|
55
|
+
},
|
|
56
|
+
"docnest.pagination.page": {
|
|
57
|
+
"message": "{number}페이지"
|
|
58
|
+
},
|
|
59
|
+
"docnest.updates.title": {
|
|
60
|
+
"message": "최근 업데이트"
|
|
61
|
+
},
|
|
62
|
+
"docnest.updates.description": {
|
|
63
|
+
"message": "최근 추가되거나 수정된 문서를 날짜와 문서 공간별로 찾아보세요."
|
|
64
|
+
},
|
|
65
|
+
"docnest.updates.range": {
|
|
66
|
+
"message": "날짜 범위"
|
|
67
|
+
},
|
|
68
|
+
"docnest.updates.days": {
|
|
69
|
+
"message": "최근 {days}일"
|
|
70
|
+
},
|
|
71
|
+
"docnest.updates.allTime": {
|
|
72
|
+
"message": "전체 기간"
|
|
73
|
+
},
|
|
74
|
+
"docnest.updates.spaces": {
|
|
75
|
+
"message": "문서 공간"
|
|
76
|
+
},
|
|
77
|
+
"docnest.updates.newOnly": {
|
|
78
|
+
"message": "새 문서만 보기"
|
|
79
|
+
},
|
|
80
|
+
"docnest.updates.summary": {
|
|
81
|
+
"message": "{dates}개 날짜, {total}개 문서"
|
|
82
|
+
},
|
|
83
|
+
"docnest.updates.dayCount": {
|
|
84
|
+
"message": ", 문서 {total}개"
|
|
85
|
+
},
|
|
86
|
+
"docnest.new": {
|
|
87
|
+
"message": "신규"
|
|
88
|
+
},
|
|
89
|
+
"docnest.updates.empty": {
|
|
90
|
+
"message": "조건에 맞는 문서가 없습니다."
|
|
91
|
+
}
|
|
92
|
+
}
|
package/src/utils.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// Pure utilities shared with build plugins. No React, browser, or Node imports.
|
|
2
|
+
export {normalizePath, isSameRoute, SITE_ROUTES} from './app/routes.js';
|
|
3
|
+
export {documentDates} from './app/logic/document-dates.js';
|
|
4
|
+
export {documentLocation} from './app/logic/document-location.js';
|