├── .eslintrc.cjs ├── .gitattributes ├── .gitignore ├── .npmrc ├── .prettierignore ├── .prettierrc ├── .stackblitzrc ├── CODE_OF_CONDUCT.md ├── README.md ├── UNLICENSE ├── create-sveltepress-app ├── .npmignore ├── README.md ├── createSveltepressApp.js ├── package.json ├── pnpm-lock.yaml └── ui │ ├── .eslintrc.cjs │ ├── .gitignore │ ├── .npmignore │ ├── .prettierrc │ ├── README.md │ ├── jsconfig.json │ ├── package.json │ ├── pnpm-lock.yaml │ ├── server │ └── server.js │ ├── src │ ├── app.html │ ├── global.d.ts │ ├── lib │ │ ├── Theme.svelte │ │ ├── components │ │ │ ├── content.svelte │ │ │ ├── modal.svelte │ │ │ ├── nav.svelte │ │ │ └── sidebar.svelte │ │ └── styles │ │ │ ├── global.scss │ │ │ └── patches.scss │ ├── routes │ │ ├── __error.svelte │ │ ├── __layout.svelte │ │ ├── create.svelte │ │ ├── dashboard.svelte │ │ ├── features.svelte │ │ └── index.svelte │ └── stores.js │ ├── static │ └── favicon.png │ └── svelte.config.js ├── degit.json ├── gui ├── Flutter │ ├── .gitignore │ ├── .metadata │ ├── README.md │ ├── analysis_options.yaml │ ├── android │ │ ├── .gitignore │ │ ├── app │ │ │ ├── build.gradle │ │ │ └── src │ │ │ │ ├── debug │ │ │ │ └── AndroidManifest.xml │ │ │ │ ├── main │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── AndroidManifest.xml.hbs │ │ │ │ ├── java │ │ │ │ │ └── dev │ │ │ │ │ │ └── geopjr │ │ │ │ │ │ └── sveltepress │ │ │ │ │ │ └── sveltepress │ │ │ │ │ │ └── MainActivity.java │ │ │ │ └── res │ │ │ │ │ ├── drawable-v21 │ │ │ │ │ └── launch_background.xml │ │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ │ ├── values-night │ │ │ │ │ └── styles.xml │ │ │ │ │ └── values │ │ │ │ │ └── styles.xml │ │ │ │ └── profile │ │ │ │ └── AndroidManifest.xml │ │ ├── build.gradle │ │ ├── gradle.properties │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ └── gradle-wrapper.properties │ │ └── settings.gradle │ ├── ios │ │ ├── .gitignore │ │ ├── Flutter │ │ │ ├── AppFrameworkInfo.plist.hbs │ │ │ ├── Debug.xcconfig │ │ │ └── Release.xcconfig │ │ ├── Runner.xcodeproj │ │ │ ├── project.pbxproj │ │ │ ├── project.xcworkspace │ │ │ │ ├── contents.xcworkspacedata │ │ │ │ └── xcshareddata │ │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ │ └── WorkspaceSettings.xcsettings │ │ │ └── xcshareddata │ │ │ │ └── xcschemes │ │ │ │ └── Runner.xcscheme │ │ ├── Runner.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ └── WorkspaceSettings.xcsettings │ │ └── Runner │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.m │ │ │ ├── Assets.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ └── LaunchImage.imageset │ │ │ │ ├── Contents.json │ │ │ │ └── README.md │ │ │ ├── Base.lproj │ │ │ ├── LaunchScreen.storyboard │ │ │ └── Main.storyboard │ │ │ ├── Info.plist │ │ │ └── main.m │ ├── lib │ │ ├── main.dart │ │ └── title.dart.hbs │ ├── linux │ │ ├── .gitignore │ │ ├── CMakeLists.txt │ │ ├── default.desktop.hbs │ │ ├── flutter │ │ │ ├── CMakeLists.txt │ │ │ ├── generated_plugin_registrant.cc │ │ │ ├── generated_plugin_registrant.h │ │ │ └── generated_plugins.cmake │ │ ├── main.cc │ │ ├── my_application.cc │ │ └── my_application.h │ ├── macos │ │ ├── .gitignore │ │ ├── Flutter │ │ │ ├── Flutter-Debug.xcconfig │ │ │ ├── Flutter-Release.xcconfig │ │ │ └── GeneratedPluginRegistrant.swift │ │ ├── Runner.xcodeproj │ │ │ ├── project.pbxproj │ │ │ ├── project.xcworkspace │ │ │ │ └── xcshareddata │ │ │ │ │ └── IDEWorkspaceChecks.plist │ │ │ └── xcshareddata │ │ │ │ └── xcschemes │ │ │ │ └── Runner.xcscheme │ │ ├── Runner.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ └── IDEWorkspaceChecks.plist │ │ └── Runner │ │ │ ├── AppDelegate.swift │ │ │ ├── Assets.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ ├── Base.lproj │ │ │ └── MainMenu.xib │ │ │ ├── Configs │ │ │ ├── AppInfo.xcconfig │ │ │ ├── Debug.xcconfig │ │ │ ├── Release.xcconfig │ │ │ └── Warnings.xcconfig │ │ │ ├── DebugProfile.entitlements │ │ │ ├── Info.plist │ │ │ ├── MainFlutterWindow.swift │ │ │ └── Release.entitlements │ ├── package.json │ ├── pubspec.lock │ ├── pubspec.yaml │ ├── scripts │ │ ├── prepareParents.js │ │ ├── prepareTitle.js │ │ └── renamePackage.js │ ├── test │ │ └── widget_test.dart │ ├── web │ │ ├── index.html │ │ └── manifest.json.hbs │ └── windows │ │ ├── .gitignore │ │ ├── CMakeLists.txt │ │ ├── flutter │ │ ├── CMakeLists.txt │ │ ├── generated_plugin_registrant.cc │ │ ├── generated_plugin_registrant.h │ │ └── generated_plugins.cmake │ │ └── runner │ │ ├── CMakeLists.txt │ │ ├── Runner.rc │ │ ├── flutter_window.cpp │ │ ├── flutter_window.h │ │ ├── main.cpp │ │ ├── resource.h │ │ ├── resources │ │ └── app_icon.ico │ │ ├── runner.exe.manifest │ │ ├── utils.cpp │ │ ├── utils.h │ │ ├── win32_window.cpp │ │ └── win32_window.h ├── GTK │ ├── .gitignore │ ├── README.md │ ├── esbuild.cjs │ ├── extra │ │ └── app.desktop │ ├── package.json │ ├── scripts │ │ ├── generateFlatpak.js │ │ └── prepareGlade.js │ ├── src │ │ └── index.js │ └── ui.glade.hbs ├── QT │ ├── .gitignore │ ├── README.md │ ├── assets.d.ts │ ├── bullet.svg │ ├── deploy │ │ ├── config.json │ │ ├── darwin │ │ │ └── SveltePress │ │ │ │ └── Contents │ │ │ │ ├── Info.plist.hbs │ │ │ │ ├── MacOS │ │ │ │ └── qode.json │ │ │ │ ├── PkgInfo │ │ │ │ └── Resources │ │ │ │ ├── entitlements.plist │ │ │ │ └── index.js │ │ ├── linux │ │ │ └── SveltePress │ │ │ │ ├── default.desktop.hbs │ │ │ │ ├── index.js │ │ │ │ └── qode.json │ │ └── win32 │ │ │ └── SveltePress │ │ │ ├── platforms │ │ │ └── .gitkeep │ │ │ ├── qode.json │ │ │ └── styles │ │ │ └── .gitkeep │ ├── esbuild.js │ ├── package.json │ ├── scripts │ │ ├── prepareAssets.js │ │ └── prepareMeta.mjs │ └── src │ │ └── index.js ├── README.md ├── generateSymlinks.mjs └── sveltepresslogo.png ├── jsconfig.json ├── netlify.toml ├── package.json ├── pages ├── guide │ ├── 01 - getting_started │ │ ├── 01 - installation.md │ │ ├── 02 - config.md │ │ └── readme.md │ ├── 02 - writing │ │ ├── 01 - structure.md │ │ ├── 02 - naming.md │ │ ├── 03 - images.md │ │ ├── 04 - drafts.md │ │ └── readme.md │ ├── 03 - extending │ │ ├── 01 - posts.md │ │ ├── 02 - theme.md │ │ ├── 03 - markdown.md │ │ └── readme.md │ ├── 04 - gui │ │ ├── 01 - Warning.md │ │ ├── 02 - Installation.md │ │ └── readme.md │ ├── Introduction.md │ └── readme.md └── internals │ ├── 01 - SveltePress │ ├── 01 - DataGenerator.md │ ├── 02 - SidebarGenerator.md │ ├── 03 - NavGenerator.md │ ├── 04 - hooksStores.md │ ├── 05 - slug.md │ ├── 06 - Theme.md │ ├── 07 - search.md │ ├── 08 - production.md │ └── readme.md │ ├── 02 - SveltePress-Native │ ├── 01 - GTK.md │ ├── 02 - QT.md │ ├── 03 - Flutter.md │ └── readme.md │ └── readme.md ├── pandoc ├── .gitignore ├── README.md ├── input │ └── .gitkeep ├── output │ └── .gitkeep ├── package.json ├── pnpm-lock.yaml ├── preparePosts.js └── runPandoc.js ├── renovate.json ├── scripts ├── generateProdData.js ├── generateSymlinks.js └── prepareTheme.js ├── src ├── app.html ├── global.d.ts ├── hooks.js ├── lib │ └── SveltePress │ │ ├── SveltePressData.js │ │ ├── Theme.svelte │ │ ├── components │ │ ├── content.svelte │ │ ├── navbar.svelte │ │ ├── search.svelte │ │ ├── sidebar.js │ │ └── sidebar.svelte │ │ ├── db │ │ └── .gitkeep │ │ ├── functions │ │ ├── dataGenerator.js │ │ ├── navGenerator.js │ │ └── sidebarGenerator.js │ │ ├── markdown │ │ ├── MD2FM.js │ │ ├── MD2HTML.js │ │ └── MDConverter.js │ │ ├── sveltePress.config.js │ │ └── theme │ │ ├── components │ │ ├── content.svelte │ │ ├── navbar.svelte │ │ ├── search.svelte │ │ └── sidebar.svelte │ │ ├── index.svelte │ │ ├── meta │ │ ├── package.json │ │ ├── root │ │ │ └── .gitkeep │ │ └── svelte.config.js │ │ └── styles │ │ ├── global.scss │ │ └── patches.scss ├── routes │ ├── [...group] │ │ ├── [slug].json.js │ │ └── [slug].svelte │ ├── __error.svelte │ └── __layout.svelte └── stores.js ├── static ├── android-chrome-192x192.png ├── android-chrome-512x512.png ├── apple-touch-icon.png ├── browserconfig.xml ├── favicon-16x16.png ├── favicon-32x32.png ├── favicon.ico ├── mstile-144x144.png ├── mstile-150x150.png ├── mstile-310x150.png ├── mstile-310x310.png ├── mstile-70x70.png ├── safari-pinned-tab.svg └── site.webmanifest └── svelte.config.js /.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: ['eslint:recommended', 'prettier'], 4 | plugins: ['svelte3'], 5 | overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }], 6 | parserOptions: { 7 | sourceType: 'module' 8 | }, 9 | env: { 10 | browser: true, 11 | es2020: true, 12 | node: true 13 | } 14 | }; 15 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # SveltePress is a Svelte project 2 | # The following extensions do not 3 | # represent code related directly 4 | # to it so they are getting igno- 5 | # red from the language stats. 6 | 7 | # gui/**/*.cc linguist-vendored 8 | # gui/**/*.h linguist-vendored 9 | # gui/**/*.cpp linguist-vendored 10 | # gui/**/*.xml linguist-vendored 11 | # gui/**/*.glade linguist-vendored 12 | # gui/**/*.xcworkspacedata linguist-vendored 13 | # gui/**/*.entitlements linguist-vendored 14 | # gui/**/*.xib linguist-vendored 15 | # gui/**/*.xcscheme linguist-vendored 16 | # gui/**/*.storyboard linguist-vendored 17 | # gui/**/*.xcsettings linguist-vendored 18 | # gui/**/*.manifest linguist-vendored 19 | # gui/**/*.xbs linguist-vendored 20 | # gui/**/*.js linguist-vendored 21 | # gui/**/CMakeLists.txt linguist-vendored 22 | # gui/**/*.cmake linguist-vendored 23 | # gui/*/test/* linguist-vendored 24 | # gui/*/tests/* linguist-vendored 25 | # # Don't js in ignore top-lever or 26 | # # in src/ 27 | # gui/*/*.js -linguist-vendored 28 | # gui/*/src/*.js -linguist-vendored 29 | 30 | # Change of plans: don't count 31 | # gui at all except sample fi- 32 | # es to show that it uses that 33 | # language too 34 | 35 | gui/** linguist-vendored 36 | gui/**/lib/*.dart -linguist-vendored 37 | 38 | src/**/*.html linguist-vendored 39 | src/**/*.css linguist-vendored 40 | # src/**/*.scss linguist-vendored 41 | 42 | pandoc/** linguist-vendored 43 | 44 | create-sveltepress-app/** linguist-vendored 45 | 46 | scripts/* linguist-vendored 47 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /.svelte-kit 4 | /package 5 | /.vercel_build_output 6 | /.svelte 7 | /build 8 | .pnpm-debug.log* 9 | *.log 10 | npm-debug.log* 11 | .AppleDouble 12 | .LSOverride 13 | .idea 14 | .cloud 15 | .project 16 | tmp/ 17 | typings/ 18 | /.gitkeep 19 | /pnpm-lock.yaml 20 | /yarn.lock 21 | /package-lock.json 22 | 23 | # DB 24 | /src/lib/SveltePress/db/*.js 25 | 26 | # Symlinks 27 | /sveltePress.config.js 28 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | engine-strict=true 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | .svelte-kit/** 2 | static/** 3 | build/** 4 | node_modules/** 5 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "useTabs": true, 3 | "singleQuote": true, 4 | "trailingComma": "none", 5 | "printWidth": 100 6 | } 7 | -------------------------------------------------------------------------------- /.stackblitzrc: -------------------------------------------------------------------------------- 1 | { 2 | "installDependencies": false, 3 | "startCommand": "npm run preinstall && npm install --ignore-scripts && node scripts/generateSymlinks.js && npm run dev" 4 | } 5 | -------------------------------------------------------------------------------- /UNLICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /create-sveltepress-app/.npmignore: -------------------------------------------------------------------------------- 1 | /ui/ 2 | -------------------------------------------------------------------------------- /create-sveltepress-app/README.md: -------------------------------------------------------------------------------- 1 |

2 | SveltePress branding 3 |

4 |

create-sveltepress-app

5 |

Documentation for humans.

6 |

7 |
8 | Code Of Conduct 9 | UNLICENSE 10 |

11 | 12 | # 13 | 14 | ## What is create-sveltepress-app? 15 | 16 | create-sveltepress-app is a wrapper around degit for easier installation of [SveltePress](https://github.com/GeopJr/SveltePress). 17 | It also has some adders, check them out on the help page! 18 | 19 | # 20 | 21 | ## Usage 22 | 23 | ```bash 24 | # Replace `my-sveltepress-project` with the name you desire 25 | npx create-sveltepress-app create my-sveltepress-project 26 | 27 | # Change directory to the folder from the previous step 28 | cd my-sveltepress-project 29 | 30 | # Install dependencies 31 | # PNPM is recommended but both YARN and NPM will do 32 | pnpm install 33 | ``` 34 | 35 | ```bash 36 | # All available commands 37 | npx create-sveltepress-app -h 38 | ``` 39 | 40 | > For more info on how SveltePress works, how to set it up & more, visit [https://sveltepress.geopjr.dev/](https://sveltepress.geopjr.dev/) 41 | 42 | # 43 | 44 | ## Contributing 45 | 46 | 1. Read the [Code of Conduct](https://github.com/GeopJr/SveltePress/blob/main/CODE_OF_CONDUCT.md) 47 | 2. Fork it ( https://github.com/GeopJr/SveltePress/fork ) 48 | 3. Create your feature branch (git checkout -b my-new-feature) 49 | 4. Commit your changes (git commit -am 'Add some feature') 50 | 5. Push to the branch (git push origin my-new-feature) 51 | 6. Create a new Pull Request 52 | -------------------------------------------------------------------------------- /create-sveltepress-app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "create-sveltepress-app", 3 | "version": "2.0.2", 4 | "description": "Documentation for humans.", 5 | "bin": { 6 | "create-sveltepress-app": "createSveltepressApp.js" 7 | }, 8 | "repository": { 9 | "type": "git", 10 | "url": "git+https://github.com/GeopJr/SveltePress.git" 11 | }, 12 | "keywords": [ 13 | "svelte", 14 | "documentation", 15 | "sveltepress", 16 | "sveltekit" 17 | ], 18 | "author": "GeopJr", 19 | "license": "Unlicense", 20 | "type": "module", 21 | "bugs": { 22 | "url": "https://github.com/GeopJr/SveltePress/issues" 23 | }, 24 | "homepage": "https://github.com/GeopJr/SveltePress#readme", 25 | "dependencies": { 26 | "chalk": "5.0.1", 27 | "degit": "2.8.4", 28 | "minimist": "1.2.6" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /create-sveltepress-app/pnpm-lock.yaml: -------------------------------------------------------------------------------- 1 | lockfileVersion: 5.3 2 | 3 | specifiers: 4 | chalk: 5.0.1 5 | degit: 2.8.4 6 | minimist: 1.2.6 7 | 8 | dependencies: 9 | chalk: 5.0.1 10 | degit: 2.8.4 11 | minimist: 1.2.6 12 | 13 | packages: 14 | 15 | /chalk/5.0.1: 16 | resolution: {integrity: sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w==} 17 | engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} 18 | dev: false 19 | 20 | /degit/2.8.4: 21 | resolution: {integrity: sha512-vqYuzmSA5I50J882jd+AbAhQtgK6bdKUJIex1JNfEUPENCgYsxugzKVZlFyMwV4i06MmnV47/Iqi5Io86zf3Ng==} 22 | engines: {node: '>=8.0.0'} 23 | hasBin: true 24 | dev: false 25 | 26 | /minimist/1.2.6: 27 | resolution: {integrity: sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==} 28 | dev: false 29 | -------------------------------------------------------------------------------- /create-sveltepress-app/ui/.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: ['eslint:recommended', 'prettier'], 4 | plugins: ['svelte3'], 5 | overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }], 6 | parserOptions: { 7 | sourceType: 'module', 8 | ecmaVersion: 2019 9 | }, 10 | env: { 11 | browser: true, 12 | es2017: true, 13 | node: true 14 | } 15 | }; 16 | -------------------------------------------------------------------------------- /create-sveltepress-app/ui/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /build 4 | /.svelte-kit 5 | /package 6 | -------------------------------------------------------------------------------- /create-sveltepress-app/ui/.npmignore: -------------------------------------------------------------------------------- 1 | * 2 | 3 | !package.json 4 | !pnpm-lock.yaml 5 | !build/** 6 | !server/** 7 | -------------------------------------------------------------------------------- /create-sveltepress-app/ui/.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "useTabs": true, 3 | "singleQuote": true, 4 | "trailingComma": "none", 5 | "printWidth": 100 6 | } 7 | -------------------------------------------------------------------------------- /create-sveltepress-app/ui/README.md: -------------------------------------------------------------------------------- 1 |

2 | SveltePress branding 3 |

4 |

sveltepress-ui

5 |

Documentation for humans.

6 |

7 |
8 | Code Of Conduct 9 | UNLICENSE 10 |

11 | 12 | # 13 | 14 | ## What is sveltepress-ui? 15 | 16 | sveltepress-ui is a user interface for SveltePress that allows you to see stats about your instance, create new posts and toggle features! 17 | 18 | It's inspired by Vue CLI's ui tool. 19 | 20 | # 21 | 22 | ## Usage 23 | 24 | ```bash 25 | npx sveltepress-ui 26 | ``` 27 | 28 | > For more info on how SveltePress works, how to set it up & more, visit [https://sveltepress.geopjr.dev/](https://sveltepress.geopjr.dev/) 29 | 30 | # 31 | 32 | ## Screenshots 33 | 34 |

35 | SveltePress UI Dashboard view 36 |

37 | 38 |

39 | SveltePress UI Post creation view 40 |

41 | 42 |

43 | SveltePress UI Toggle features view 44 |

45 | 46 | # 47 | 48 | ## Contributing 49 | 50 | 1. Read the [Code of Conduct](https://github.com/GeopJr/SveltePress/blob/main/CODE_OF_CONDUCT.md) 51 | 2. Fork it ( https://github.com/GeopJr/SveltePress/fork ) 52 | 3. Create your feature branch (git checkout -b my-new-feature) 53 | 4. Commit your changes (git commit -am 'Add some feature') 54 | 5. Push to the branch (git push origin my-new-feature) 55 | 6. Create a new Pull Request 56 | -------------------------------------------------------------------------------- /create-sveltepress-app/ui/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "paths": { 5 | "$lib": ["src/lib"], 6 | "$lib/*": ["src/lib/*"] 7 | } 8 | }, 9 | "include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"] 10 | } 11 | -------------------------------------------------------------------------------- /create-sveltepress-app/ui/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sveltepress-ui", 3 | "version": "1.0.0", 4 | "description": "Documentation for humans with a friendly UI.", 5 | "bin": { 6 | "sveltepress-ui": "server/server.js" 7 | }, 8 | "repository": { 9 | "type": "git", 10 | "url": "git+https://github.com/GeopJr/SveltePress.git" 11 | }, 12 | "keywords": [ 13 | "svelte", 14 | "documentation", 15 | "sveltepress", 16 | "sveltekit", 17 | "ui" 18 | ], 19 | "author": "GeopJr", 20 | "license": "Unlicense", 21 | "bugs": { 22 | "url": "https://github.com/GeopJr/SveltePress/issues" 23 | }, 24 | "homepage": "https://github.com/GeopJr/SveltePress#readme", 25 | "scripts": { 26 | "dev": "svelte-kit dev", 27 | "build": "svelte-kit build", 28 | "preview": "svelte-kit preview", 29 | "lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .", 30 | "format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. ." 31 | }, 32 | "devDependencies": { 33 | "@carbon/themes": "11.2.0", 34 | "@sveltejs/adapter-node": "1.0.0-next.73", 35 | "@sveltejs/kit": "1.0.0-next.324", 36 | "carbon-components": "10.56.0", 37 | "carbon-components-svelte": "0.63.3", 38 | "carbon-icons-svelte": "11.0.1", 39 | "carbon-preprocess-svelte": "0.9.0", 40 | "cl-editor": "2.3.0", 41 | "eslint": "8.14.0", 42 | "eslint-config-prettier": "8.5.0", 43 | "eslint-plugin-svelte3": "3.4.1", 44 | "prettier": "2.6.2", 45 | "prettier-plugin-svelte": "2.7.0", 46 | "sass": "1.51.0", 47 | "svelte": "3.47.0", 48 | "svelte-preprocess": "4.10.6" 49 | }, 50 | "type": "module", 51 | "dependencies": { 52 | "express": "4.18.1", 53 | "open": "8.4.0", 54 | "turndown": "7.1.1" 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /create-sveltepress-app/ui/src/app.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | SveltePress UI 8 | %svelte.head% 9 | 10 | 11 |
%svelte.body%
12 | 13 | 14 | -------------------------------------------------------------------------------- /create-sveltepress-app/ui/src/global.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /create-sveltepress-app/ui/src/lib/Theme.svelte: -------------------------------------------------------------------------------- 1 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /create-sveltepress-app/ui/src/lib/components/content.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /create-sveltepress-app/ui/src/lib/components/modal.svelte: -------------------------------------------------------------------------------- 1 | 11 | 12 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /create-sveltepress-app/ui/src/lib/components/nav.svelte: -------------------------------------------------------------------------------- 1 | 41 | 42 |
43 |
44 | 45 |
46 | 47 |
65 | -------------------------------------------------------------------------------- /create-sveltepress-app/ui/src/lib/components/sidebar.svelte: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 20 | 27 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /create-sveltepress-app/ui/src/lib/styles/global.scss: -------------------------------------------------------------------------------- 1 | $feature-flags: ( 2 | enable-css-custom-properties: true, 3 | grid-columns-16: true 4 | ); 5 | 6 | @import '@carbon/themes/scss/themes'; 7 | 8 | :root { 9 | @include carbon--theme($carbon--theme--white, true); 10 | } 11 | 12 | :root[theme='g10'] { 13 | @include carbon--theme($carbon--theme--g10, true); 14 | } 15 | 16 | :root[theme='g90'] { 17 | @include carbon--theme($carbon--theme--g90, true); 18 | } 19 | 20 | :root[theme='g100'] { 21 | @include carbon--theme($carbon--theme--g100, true); 22 | } 23 | 24 | $css--font-face: true; 25 | $css--helpers: true; 26 | $css--body: true; 27 | $css--use-layer: true; 28 | $css--reset: true; 29 | $css--default-type: true; 30 | $css--plex: true; 31 | 32 | @import 'carbon-components/scss/globals/scss/_css--reset.scss'; 33 | @import 'carbon-components/scss/globals/scss/_css--font-face.scss'; 34 | @import 'carbon-components/scss/globals/scss/_css--helpers.scss'; 35 | @import 'carbon-components/scss/globals/scss/_css--body.scss'; 36 | @import 'carbon-components/scss/globals/grid/_grid.scss'; 37 | 38 | /* import individual components SCSS */ 39 | @import 'carbon-components/scss/components/button/button'; 40 | @import 'carbon-components/scss/components/ui-shell/ui-shell'; 41 | @import 'carbon-components/scss/components/tile/tile'; 42 | @import 'carbon-components/scss/components/modal/modal'; 43 | @import 'carbon-components/scss/components/loading/loading'; 44 | @import 'carbon-components/scss/components/overflow-menu/overflow-menu'; 45 | @import 'carbon-components/scss/components/data-table/data-table'; 46 | @import 'carbon-components/scss/components/select/select'; 47 | @import 'carbon-components/scss/components/breadcrumb/breadcrumb'; 48 | @import 'carbon-components/scss/components/code-snippet/code-snippet'; 49 | @import 'carbon-components/scss/components/text-input/text-input'; 50 | 51 | /* import patches */ 52 | @import './patches.scss'; 53 | -------------------------------------------------------------------------------- /create-sveltepress-app/ui/src/lib/styles/patches.scss: -------------------------------------------------------------------------------- 1 | .sp--sidebar-grandparent { 2 | pointer-events: none; 3 | } 4 | .bx--btn { 5 | overflow-wrap: anywhere; 6 | /* Safari & Opera */ 7 | word-break: break-word; 8 | } 9 | .bx--switcher__item-link:focus { 10 | outline-color: var(--cds-button-primary); 11 | } 12 | #main-content ul { 13 | list-style-type: square; 14 | } 15 | li { 16 | line-height: var(--cds-body-long-02-line-height, 1.5); 17 | } 18 | a { 19 | color: var(--cds-button-primary); 20 | line-height: var(--cds-body-long-02-line-height, 1.5); 21 | } 22 | blockquote { 23 | background-color: var(--cds-ui-background); 24 | padding: 0.2rem 1rem; 25 | margin: 1rem 0; 26 | } 27 | p { 28 | > img { 29 | max-width: 100%; 30 | } 31 | 32 | > code { 33 | background-color: var(--cds-ui-background); 34 | } 35 | } 36 | 37 | pre { 38 | background-color: var(--cds-ui-background); 39 | margin: 1.2rem 0; 40 | padding: 1rem; 41 | } 42 | 43 | :root[theme='g10'], 44 | :root[theme='white'] { 45 | pre { 46 | background-color: var(--cds-ui-03); 47 | } 48 | } 49 | 50 | pre, 51 | code { 52 | white-space: pre-wrap; 53 | } 54 | 55 | .bx--btn--primary:hover { 56 | background-color: var(--cds-button-primary-hover); 57 | } 58 | .bx--side-nav ~ .bx--content { 59 | margin-left: 0; 60 | } 61 | 62 | :root, 63 | :root[theme='g10'], 64 | :root[theme='g100'], 65 | :root[theme='g90'], 66 | :root[theme='white'] { 67 | --cds-body-long-02-line-height: 1.8; 68 | --cds-interactive-01: #ff3e00; 69 | --cds-button-primary: #ff3e00; 70 | --cds-button-primary-hover: #e23900; 71 | --cds-button-primary-active: #c23000; 72 | --cds-focus: var(--cds-button-primary); 73 | } 74 | 75 | a.bx--side-nav__link[aria-current='page'], 76 | a.bx--side-nav__link--current { 77 | &::before { 78 | background-color: var(--cds-button-primary); 79 | } 80 | } 81 | 82 | a.bx--header__name, 83 | .bx--header__action, 84 | a.bx--header__menu-item, 85 | .bx--skip-to-content { 86 | &:focus { 87 | border-color: var(--cds-button-primary); 88 | } 89 | } 90 | 91 | [role='search'].active { 92 | outline-color: var(--cds-button-primary) !important; 93 | } 94 | 95 | .bx--side-nav.bx--side-nav--expanded ~ .bx--content { 96 | @media only screen and (max-width: 1056px) { 97 | margin-left: 0rem; 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /create-sveltepress-app/ui/src/routes/__error.svelte: -------------------------------------------------------------------------------- 1 | 11 | 12 | 16 | 17 | 18 |

{status}

19 | {error} 20 |
21 | 22 | 29 | -------------------------------------------------------------------------------- /create-sveltepress-app/ui/src/routes/__layout.svelte: -------------------------------------------------------------------------------- 1 | 15 | 16 | 17 | 18 |