portosaurus 2.0.2 → 2.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/bin/portosaurus.mjs +14 -327
- package/package.json +16 -11
- package/src/cli/build.mjs +43 -0
- package/src/cli/dev.mjs +31 -0
- package/src/cli/init.mjs +135 -0
- package/src/cli/serve.mjs +30 -0
- package/src/core/buildDocuConfig.mjs +664 -0
- package/src/core/{themePlugin.mjs → plugins/themePlugin.mjs} +1 -1
- package/src/template/.github/workflows/deploy.yml +52 -0
- package/src/template/.nojekyll +0 -0
- package/src/template/README.md +58 -0
- package/src/template/blog/authors.yml +1 -1
- package/src/template/blog/welcome.md +1 -1
- package/src/template/config.js +40 -23
- package/src/template/package.json +20 -0
- package/src/template/static/img/svg/icon-blog.svg +2 -0
- package/src/template/static/img/svg/icon-note.svg +2 -0
- package/src/{components → theme/components}/AboutSection/index.js +22 -13
- package/src/{components → theme/components}/AboutSection/styles.module.css +59 -48
- package/src/{components → theme/components}/ContactSection/index.js +31 -24
- package/src/{components → theme/components}/ContactSection/styles.module.css +31 -26
- package/src/{components → theme/components}/ExperienceSection/index.js +12 -7
- package/src/{components → theme/components}/ExperienceSection/styles.module.css +23 -20
- package/src/{components → theme/components}/HeroSection/index.js +9 -11
- package/src/{components → theme/components}/HeroSection/styles.module.css +44 -32
- package/src/{components → theme/components}/NoteIndex/index.js +10 -3
- package/src/{components → theme/components}/Preview/components/PreviewHeader.js +14 -8
- package/src/{components → theme/components}/Preview/components/Triggers/Pv.js +32 -7
- package/src/{components → theme/components}/Preview/components/Triggers/SrcPv.js +1 -5
- package/src/theme/components/Preview/index.js +3 -0
- package/src/{components → theme/components}/ProjectsSection/index.js +279 -224
- package/src/{components → theme/components}/ProjectsSection/styles.module.css +21 -17
- package/src/{components → theme/components}/ScrollToTop/index.js +18 -21
- package/src/{components → theme/components}/ScrollToTop/styles.module.css +10 -9
- package/src/theme/components/SocialLinks/index.js +125 -0
- package/src/{components → theme/components}/SocialLinks/styles.module.css +9 -7
- package/src/{components → theme/components}/Tooltip/index.js +4 -1
- package/src/theme/config/iconMappings.js +465 -0
- package/src/theme/config/metaTags.js +239 -0
- package/src/theme/config/prism.js +179 -0
- package/src/theme/config/sidebar.js +17 -0
- package/src/{css → theme/css}/bootstrap.css +0 -1
- package/src/theme/css/catppuccin.css +618 -0
- package/src/{css → theme/css}/custom.css +3 -9
- package/src/{css → theme/css}/tasks.css +43 -37
- package/src/theme/{MDXComponents.js → overrides/MDXComponents.js} +3 -3
- package/src/theme/{Root.js → overrides/Root.js} +2 -4
- package/src/{pages → theme/pages}/index.js +23 -39
- package/src/theme/pages/notes.js +83 -0
- package/src/{pages → theme/pages}/tasks.js +115 -56
- package/src/{core/client-utils → theme/utils}/HashNavigation.js +60 -49
- package/src/{core/client-utils → theme/utils}/updateTitle.js +21 -25
- package/src/{core/build-utils → utils/build}/cssUtils.mjs +5 -3
- package/src/{core/build-utils → utils/build}/generateFavicon.mjs +44 -12
- package/src/{core/build-utils → utils/build}/generateRobotsTxt.mjs +4 -3
- package/src/{core/build-utils → utils/build}/iconExtractor.mjs +7 -3
- package/src/utils/build/imageDownloader.mjs +159 -0
- package/src/{core/build-utils → utils/build}/imageProcessor.mjs +5 -6
- package/src/utils/helpers.mjs +153 -0
- package/src/utils/logger.mjs +53 -0
- package/src/utils/packageManager.mjs +88 -0
- package/src/components/Preview/index.js +0 -3
- package/src/components/SocialLinks/index.js +0 -130
- package/src/config/iconMappings.js +0 -329
- package/src/config/metaTags.js +0 -240
- package/src/config/prism.js +0 -179
- package/src/config/sidebar.js +0 -20
- package/src/core/build-utils/imageDownloader.mjs +0 -98
- package/src/core/createDocuConf.mjs +0 -490
- package/src/core/defaults.mjs +0 -67
- package/src/core/logger.mjs +0 -17
- package/src/core/packageManager.mjs +0 -72
- package/src/css/catppuccin.css +0 -632
- package/src/pages/notes.js +0 -87
- /package/src/template/notes/{welcome.md → welcome.mdx} +0 -0
- /package/src/{components → theme/components}/NoteIndex/styles.module.css +0 -0
- /package/src/{components → theme/components}/Preview/components/FeedbackStates.js +0 -0
- /package/src/{components → theme/components}/Preview/components/FileTabs.js +0 -0
- /package/src/{components → theme/components}/Preview/components/Triggers/index.js +0 -0
- /package/src/{components → theme/components}/Preview/components/ViewerWindow.js +0 -0
- /package/src/{components → theme/components}/Preview/hooks/useDeepLinkHash.js +0 -0
- /package/src/{components → theme/components}/Preview/hooks/useDockLayout.js +0 -0
- /package/src/{components → theme/components}/Preview/hooks/useFileFetch.js +0 -0
- /package/src/{components → theme/components}/Preview/renderers/CodeRenderer.js +0 -0
- /package/src/{components → theme/components}/Preview/renderers/ImageRenderer.js +0 -0
- /package/src/{components → theme/components}/Preview/renderers/PdfRenderer.js +0 -0
- /package/src/{components → theme/components}/Preview/renderers/WebRenderer.js +0 -0
- /package/src/{components → theme/components}/Preview/state/index.js +0 -0
- /package/src/{components → theme/components}/Preview/styles.module.css +0 -0
- /package/src/{components → theme/components}/Preview/utils/index.js +0 -0
- /package/src/{components → theme/components}/Tooltip/styles.module.css +0 -0
package/src/pages/notes.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import Layout from '@theme/Layout';
|
|
2
|
-
import NoteCards from '@site/src/components/NoteIndex/index.js';
|
|
3
|
-
import { usePluginData } from '@docusaurus/useGlobalData';
|
|
4
|
-
import ScrollToTop from '../components/ScrollToTop/index.js';
|
|
5
|
-
import HashNavigation from '../core/client-utils/HashNavigation.js';
|
|
6
|
-
|
|
7
|
-
const style = {
|
|
8
|
-
|
|
9
|
-
notesContainer: {
|
|
10
|
-
padding: '2rem 0',
|
|
11
|
-
maxWidth: '1200px',
|
|
12
|
-
margin: '0 auto'
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
pageTitle: {
|
|
16
|
-
fontSize: '2.5rem',
|
|
17
|
-
textAlign: 'center',
|
|
18
|
-
marginBottom: '0.5rem',
|
|
19
|
-
color: 'var(--ifm-color-primary)',
|
|
20
|
-
animation: 'slideUp 0.5s ease-out forwards'
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
pageDescription: {
|
|
24
|
-
fontSize: '0.9rem',
|
|
25
|
-
textAlign: 'center',
|
|
26
|
-
color: 'var(--ifm-font-color-tertiary)',
|
|
27
|
-
marginBottom: '2rem',
|
|
28
|
-
animation: 'slideUp 0.5s ease-out 0.2s forwards',
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
'@keyframes slideUp': {
|
|
32
|
-
from: {
|
|
33
|
-
opacity: 0,
|
|
34
|
-
transform: 'translateY(20px)'
|
|
35
|
-
},
|
|
36
|
-
to: {
|
|
37
|
-
opacity: 1,
|
|
38
|
-
transform: 'translateY(0)'
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
'@media (prefers-reduced-motion: reduce)': {
|
|
43
|
-
notesContainer: {
|
|
44
|
-
animation: 'none !important'
|
|
45
|
-
},
|
|
46
|
-
pageTitle: {
|
|
47
|
-
animation: 'none !important'
|
|
48
|
-
},
|
|
49
|
-
pageDescription: {
|
|
50
|
-
animation: 'none !important',
|
|
51
|
-
opacity: 1
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export default function Notes() {
|
|
57
|
-
const { path: docsBasePath } = usePluginData('docusaurus-plugin-content-docs');
|
|
58
|
-
const pathName = docsBasePath.replace('/', '');
|
|
59
|
-
const pageTitle = pathName.charAt(0).toUpperCase() + pathName.slice(1);
|
|
60
|
-
|
|
61
|
-
return (
|
|
62
|
-
<Layout
|
|
63
|
-
title={pageTitle}
|
|
64
|
-
description={`My ${pageTitle}`}
|
|
65
|
-
>
|
|
66
|
-
<main style={style.notesContainer}>
|
|
67
|
-
<div className="container">
|
|
68
|
-
<header className="text-center mb-4">
|
|
69
|
-
<h1 style={style.pageTitle}>
|
|
70
|
-
My Notes
|
|
71
|
-
</h1>
|
|
72
|
-
<p style={style.pageDescription}>
|
|
73
|
-
A collection of my self written notes & reference guides
|
|
74
|
-
</p>
|
|
75
|
-
</header>
|
|
76
|
-
<NoteCards/>
|
|
77
|
-
<ScrollToTop/>
|
|
78
|
-
<HashNavigation
|
|
79
|
-
elementPrefix="note-"
|
|
80
|
-
elementSelector=".note-card"
|
|
81
|
-
effectDuration={6000}
|
|
82
|
-
/>
|
|
83
|
-
</div>
|
|
84
|
-
</main>
|
|
85
|
-
</Layout>
|
|
86
|
-
);
|
|
87
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|