Skip to content

Commit 1aa6b9f

Browse files
committed
Update docs
1 parent cd27e7d commit 1aa6b9f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+2761
-3100
lines changed

.github/workflows/gh-pages.yml

Lines changed: 57 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,66 @@
1-
name: github pages
1+
# Sample workflow for building and deploying a VitePress site to GitHub Pages
2+
#
3+
name: Deploy VitePress site to Pages
24

35
on:
6+
# Runs on pushes targeting the `main` branch. Change this to `master` if you're
7+
# using the `master` branch as the default branch.
48
push:
5-
branches:
6-
- main # Set a branch to deploy
9+
branches: [main]
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
15+
permissions:
16+
contents: read
17+
pages: write
18+
id-token: write
19+
20+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
21+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
22+
concurrency:
23+
group: pages
24+
cancel-in-progress: false
725

826
jobs:
9-
deploy:
10-
runs-on: ubuntu-20.04
27+
# Build job
28+
build:
29+
runs-on: ubuntu-latest
1130
steps:
12-
- uses: actions/checkout@v2
31+
- name: Checkout
32+
uses: actions/checkout@v3
1333
with:
14-
submodules: true # Fetch Hugo themes (true OR recursive)
15-
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
16-
17-
- name: Setup Hugo
18-
uses: peaceiris/actions-hugo@v2
34+
fetch-depth: 0 # Not needed if lastUpdated is not enabled
35+
# - uses: pnpm/action-setup@v2 # Uncomment this if you're using pnpm
36+
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
37+
- name: Setup Node
38+
uses: actions/setup-node@v3
1939
with:
20-
hugo-version: 'latest'
21-
extended: true
22-
23-
- name: Update theme
24-
run: git submodule update --init --recursive
25-
26-
- name: Build
27-
run: hugo --minify
28-
29-
- name: Deploy
30-
uses: peaceiris/actions-gh-pages@v3
31-
if: github.ref == 'refs/heads/main'
40+
node-version: 18
41+
cache: npm # or pnpm / yarn
42+
- name: Setup Pages
43+
uses: actions/configure-pages@v3
44+
- name: Install dependencies
45+
run: npm ci # or pnpm install / yarn install / bun install
46+
- name: Build with VitePress
47+
run: |
48+
npm run docs:build
49+
touch .vitepress/dist/.nojekyll
50+
- name: Upload artifact
51+
uses: actions/upload-pages-artifact@v2
3252
with:
33-
github_token: ${{ secrets.GITHUB_TOKEN }}
34-
publish_dir: ./public
53+
path: .vitepress/dist
54+
55+
# Deployment job
56+
deploy:
57+
environment:
58+
name: github-pages
59+
url: ${{ steps.deployment.outputs.page_url }}
60+
needs: build
61+
runs-on: ubuntu-latest
62+
name: Deploy
63+
steps:
64+
- name: Deploy to GitHub Pages
65+
id: deployment
66+
uses: actions/deploy-pages@v2

.gitignore

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1-
.vuepress/dist
2-
.vitepress/dist
3-
.vite/*
4-
node_modules/*
5-
.hugo_build.lock
6-
public/*
7-
resources/_gen/*
1+
/coverage
2+
/src/client/shared.ts
3+
/src/node/shared.ts
4+
*.log
5+
*.tgz
6+
.DS_Store
7+
.idea
8+
.temp
9+
.vite_opt_cache
10+
.vscode
11+
dist
12+
cache
13+
temp
14+
examples-temp
15+
node_modules
16+
pnpm-global
17+
TODOs.md

.hugo_build.lock

Whitespace-only changes.

.vitepress/config.mjs

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
import { defineConfig } from 'vitepress'
2+
3+
// https://vitepress.dev/reference/site-config
4+
export default defineConfig({
5+
lang: 'en-US',
6+
title: "Pixelfed Docs",
7+
base: "/",
8+
description: "The official Pixelfed documentation",
9+
themeConfig: {
10+
logo: {
11+
light: '/logo-black.png',
12+
dark: '/logo-white.png'
13+
},
14+
15+
siteTitle: 'Docs',
16+
17+
// https://vitepress.dev/reference/default-theme-config
18+
nav: [
19+
{ text: 'pixelfed.org', link: 'https://pixelfed.org' },
20+
{ text: 'Support', link: 'https://github.com/pixelfed/pixelfed/discussions' },
21+
],
22+
23+
search: {
24+
provider: 'local'
25+
},
26+
27+
i18nRouting: false,
28+
29+
sidebar: [
30+
{
31+
text: 'Running Pixelfed',
32+
items: [
33+
{ text: 'Prerequisites', link: '/running-pixelfed/prerequisites' },
34+
{ text: 'Installation', link: '/running-pixelfed/installation' },
35+
{ text: 'Configuration', link: '/running-pixelfed/configuration' },
36+
{ text: 'Administration', link: '/running-pixelfed/administration' },
37+
{ text: 'CLI Cheatsheet', link: '/running-pixelfed/cli-cheatsheet' },
38+
{ text: 'Troubleshooting', link: '/running-pixelfed/troubleshooting' }
39+
]
40+
},
41+
{
42+
text: 'Spec Compliance',
43+
items: [
44+
{ text: 'ActivityPub', link: '/spec/ActivityPub' },
45+
]
46+
},
47+
],
48+
49+
socialLinks: [
50+
{ icon: 'github', link: 'https://github.com/pixelfed' },
51+
{ icon: 'discord', link: 'https://discord.gg/MHvDHaSzmc' },
52+
{
53+
icon: {
54+
svg: '<svg width="20" height="20" version="1.1" id="svg161" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"> <defs id="defs165" /> <path d="M 10,20 C 4.4772,20 0,15.5228 0,10 0,4.4772 4.4772,0 10,0 15.5228,0 20,4.4772 20,10 20,15.5228 15.5228,20 10,20 Z M 9.206,12.1832 h 1.8344 c 1.728,0 3.1292,-1.364 3.1292,-3.046 0,-1.6824 -1.4008,-3.0464 -3.1292,-3.0464 H 8.3928 c -0.9968,0 -1.8052,0.7868 -1.8052,1.7576 v 6.84 z" fill-rule="evenodd" id="path159" style="stroke-width:0.4" /></svg>'
55+
},
56+
link: 'https://pixelfed.social/@pixelfed'
57+
},
58+
{ icon: 'mastodon', link: 'https://mastodon.social/@pixelfed' },
59+
]
60+
},
61+
locales: {
62+
root: {
63+
label: 'English',
64+
lang: 'en'
65+
},
66+
},
67+
head: [
68+
['link', { rel: "apple-touch-icon", sizes: "180x180", href: "/assets/favicon.png"}],
69+
['link', { rel: "icon", type: "image/png", sizes: "32x32", href: "/assets/favicon.png"}],
70+
['link', { rel: "icon", type: "image/png", sizes: "16x16", href: "/assets/favicon.png"}],
71+
['link', { rel: "shortcut icon", href: "/assets/favicon.png"}],
72+
['meta', { name: "theme-color", content: "#ffffff"}],
73+
],
74+
})

archetypes/default.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

config.toml

Lines changed: 0 additions & 94 deletions
This file was deleted.

content/en/_index.md

Lines changed: 0 additions & 47 deletions
This file was deleted.

content/en/developing-pixelfed/_index.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

content/en/developing-pixelfed/intro.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)