• This repository has been archived on 27/Mar/2023
  • Stars
    star
    215
  • Rank 177,337 (Top 4 %)
  • Language Svelte
  • License
    The Unlicense
  • Created almost 3 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Documentation for humans.

Looking for a better alternative? Check out KitDocs!

Project is EOL

SveltePress branding

SveltePress

Documentation for humans.


Code Of Conduct UNLICENSE

What is SveltePress?

SveltePress is a documentation tool built on top of SvelteKit, a "serverless-first" framework for building web applications for Svelte.

SvelteKit & Svelte's simplicity allow the user to modify SveltePress to fit their needs with little to no effort while taking advantage of the incredible performance of both of them.

Apart from all the super powers inherited from Svelte & SvelteKit, the main point of SveltePress is to allow less knowledgeable users to create and publish content. To achieve that, SveltePress uses a filesystem-based structure.

For example the following structure...

pages
โ””โ”€โ”€ cooking
    โ”œโ”€โ”€ allergies.md
    โ”œโ”€โ”€ main_dish
    โ”‚ย ย  โ”œโ”€โ”€ pizza.md
    โ”‚ย ย  โ””โ”€โ”€ spaghetti.md
    โ””โ”€โ”€ readme.md

will generate the following sidebar:

- Cooking
- Allergies
- Main Dish
  - Pizza
  - Spaghetti

Installation

The best way to install SveltePress is by using degit. degit works similarly to git but uses only the latest commit (plus can be configured to delete some files), you can read more about it on its repo page.

# Replace `my-sveltepress-project` with the name you desire
npx degit GeopJr/SveltePress my-sveltepress-project
# or by using create-sveltepress-app (which wraps the above)
npx create-sveltepress-app create my-sveltepress-project

# Change directory to the folder from the previous step
cd my-sveltepress-project

# Install dependencies
# PNPM is recommended but both YARN and NPM will do
pnpm install

# A post-install script will now create some symlinks

On Windows (non-WSL), creating symlinks requires Admin Privileges, the script will ask you to re-run it in an Admin terminal.

For more info on how SveltePress works, how to set it up & more, visit https://sveltepress.geopjr.dev/

Themes

There's not a curated theme gallery, but any repo will do. Themes are being handled by create-sveltepress-app:

# Create a new SveltePress with the cakepop theme
npx create-sveltepress-app create my-sveltepress-project --theme=GeopJr/cakepop

# Or replace your current theme with cakepop (assumes you are at the root of your Sveltepress project)
npx create-sveltepress-app add --theme=GeopJr/cakepop

# Or restore to the default theme
npx create-sveltepress-app add --theme=GeopJr/SveltePress/src/lib/SveltePress/theme/

The --theme argument accepts anything degit handles (including branches, folders, tags etc.).

cakepop is an 'official' theme using Windi CSS.

GUI

SveltePress can create native GUIs for Android, iOS, Linux, macOS & Windows automatically! Visit the /gui folder for more info!

Pandoc

SveltePress can export to epub, pdf, docx and a whole lot more formats using Pandoc. Visit the /pandoc folder for more info!

diagram of filesystem and the coresponding sidebar

Video Docs

youtube video

Contributing

  1. Read the Code of Conduct
  2. Fork it ( https://github.com/GeopJr/SveltePress/fork )
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request

Sponsors

GeopJr Sponsors

More Repositories

1

Tuba

Browse the Fediverse
Vala
458
star
2

Collision

Check hashes for your files - A GUI tool to generate, compare and verify MD5, SHA-1, SHA-256, SHA-512, Blake3, CRC32 & Adler32 hashes.
Crystal
133
star
3

BLAHAJ

๐Ÿฆˆ๐Ÿณ๏ธโ€โšง๏ธ๐Ÿณ๏ธโ€๐ŸŒˆ Gay sharks at your local terminal - lolcat-like CLI tool
Crystal
118
star
4

DNOME

Adwaita-inspired Discord Theme
Less
101
star
5

libadwaita.cr

libadwaita bindings for Crystal
Crystal
40
star
6

vite-plugin-dart

โšก + ๐ŸŽฏ = ๐Ÿ’–
JavaScript
28
star
7

Crycord

A Discord Client modification with plugins. Uses BeautifulDiscord's CSS injector.
Crystal
24
star
8

DrKahls-Time-Machine

An online Cuphead save Editor
HTML
23
star
9

exorcism

Corrupt your mp4 videos. Infinite and negative duration.
Svelte
18
star
10

ultimate-gtk4-crystal-guide

Learn how to create premium GTK4 apps in Crystal
18
star
11

block-revokes-async_wake

Just an ipa for blocking ocsp.apple.com
18
star
12

CO2

A GitHub action that notifies you about your website's carbon emissions and gives you some fun facts about it
JavaScript
15
star
13

create-crystal-app

An unopinionated user-friendly crystal init alternative
Crystal
14
star
14

Granz-cr

A Discord bot/framework(?) for Crystal
Crystal
10
star
15

PronounBird

Automatically add people's pronouns next to their name while your browse Twitter.
JavaScript
10
star
16

pog

A faster npm run & npx
Crystal
10
star
17

BeardBin

A Zero-Knowledge Encrypted Text/Code sharing project
Vue
10
star
18

argyle

An offline collection of online tools
Vue
9
star
19

sabo-tabby

๐Ÿˆโ€โฌ›๐Ÿณ๏ธโ€โšง๏ธ Extremely Fast Static File Server
Crystal
8
star
20

Shipwreck

Automatically create Crystal JSON mappings from input
JavaScript
8
star
21

MarketVSX

An extension that creates a bridge between vscode marketplace and open-vsx.
JavaScript
8
star
22

pixelfed-js

A js wrapper for the Pixelfed API following the PHP one
JavaScript
7
star
23

geopjr.dev

My personal webpage
SCSS
6
star
24

non-blocking-spawn

Crystal shard that spawns fibers in any worker thread BUT the current one
Crystal
6
star
25

cakepop

A modern theme for SveltePress
Svelte
5
star
26

matrixcr

A Work In Progress matrix.org API wrapper for Crystal
Crystal
4
star
27

gettext.cr

Crystal bindings for the GNU & Musl gettext library.
Crystal
4
star
28

tankionline.js

An API wrapper for Tanki Online ratings.
JavaScript
4
star
29

asar-cr

A crystal library to read from, pack into and extract from .asar archives.
Crystal
4
star
30

vitepressify

๐Ÿ’Ž๐Ÿ–– Convert Crystal docs into VitePress
Crystal
4
star
31

action-accessibility

Programming is for everyone. No matter what. This action helps achieve that. Uses TTS and OpenDyslexic to create alternative accessibility options on issues and PRs.
JavaScript
3
star
32

discord-tanki

Discord Rich Presence for Tanki Online, using electron and materializeCSS
JavaScript
3
star
33

Crycord-GUI

A GUI for Crycord written in Crystal, GTK and Glade
Crystal
3
star
34

sponsors.cr

Handle DNS records with ease
Crystal
3
star
35

JavaScriptCore.cr

JavaScriptCore bindings for Crystal
Crystal
3
star
36

Cydia_Repo

My cydia repo
HTML
2
star
37

tiny-stats-template

A tiny system monitor used as a template for GTK4 + Crystal apps
Crystal
2
star
38

GeopJr

Just a GH profile readme
JavaScript
2
star
39

SelectJelbrek

A non-A12 tweak to convert selected text to Jelbrek
Logos
2
star
40

blurhash-glib

[MIRROR] A GLib-based blurhash implementation partially ported from fast-blurhash including further optimizations.
Vala
1
star
41

Granz_bot

A Discord Bot written in ruby using discordrb
Ruby
1
star
42

SvelteGlass

Analyze Svelte Apps
Vue
1
star
43

crutter

Create Flutter Widgets from Crystal
Crystal
1
star
44

Krystal

A (very basic) Crystal-Lang Highlighter for Komodo Edit/IDE
Python
1
star
45

sandstorm

๐Ÿš€ Fast ๐Ÿ–Œ๏ธ Utility-first ๐ŸŒˆ CSS Colors ๐ŸŽจ in < 100 LOC ๐Ÿ’ป
Crystal
1
star
46

discordcr.rocks

A simple guide to introduce people to discordcr
JavaScript
1
star
47

Crusic

A discordcr music bot that uses youtube-dl and ffmpeg to download and convert music to dca files
Crystal
1
star
48

misskey-mastoapi-ext-proposal

Misskey <=> Mastodon API compat extensions proposal
1
star