diff --git a/.prettierignore b/.prettierignore index ffa6089..a8eee58 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,7 +1,6 @@ .DS_Store node_modules /build -/testing-docs /public /.svelte-kit /package diff --git a/README.md b/README.md index 2871e26..a220a69 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,6 @@ The official ReVanced Website. -## Documentation - -The documentation you see on the live website is generated from a collection of markup files found in [this git repository](https://github.com/revanced/revanced-documentation). The documentation "generator" currently supports asciidoc and markdown. - -It looks for markup files in the `testing-docs` folder by default, but you can specify a different path by changing the `REVANCED_DOCS_FOLDER` environment variable. - ## Developing Install dependencies with `npm install` (or `pnpm install`). diff --git a/ci-build.sh b/ci-build.sh deleted file mode 100755 index 9d7d6f4..0000000 --- a/ci-build.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -set -e - -# CD to the directory of this script. -cd "$(dirname "$0")" - -docs_git_repo="${REVANCED_DOCS_REPO:-https://github.com/revanced/revanced-documentation.git}" - -git clone "$docs_git_repo" "_docs_src" -# TODO: transform a tag links so this works properly... -#export REVANCED_DOCS_FOLDER="_docs_src/docs" - -#git clone --recurse-submodules "$docs_git_repo" "_docs_src" - -# Copy assets from docs repo to here. -# mkdir -p static/docs -# cp -r "$REVANCED_DOCS_FOLDER"/assets static/docs/assets || true - -npm run build diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a5ecda0..f40d281 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -61,6 +61,9 @@ devDependencies: sass: specifier: ^1.55.0 version: 1.64.1 + semver: + specifier: ^7.5.4 + version: 7.5.4 sirv-cli: specifier: ^2.0.2 version: 2.0.2 diff --git a/src/routes/docs/+layout.server.ts b/src/routes/docs/+layout.server.ts deleted file mode 100644 index 9720f30..0000000 --- a/src/routes/docs/+layout.server.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { LayoutServerLoad } from './$types'; - -import { index_content } from './documentation.server'; - -// The load function here used to get data from a json file created by a (prerendered) server route. -// This was because we could not prerender the documentation route before. -// If you can no longer prerender the docs, then you are going to have to move the load functions here to a prerendered server route like before and fetch them here. -export const prerender = true; - -export const load: LayoutServerLoad = () => ({ tree: index_content() }); diff --git a/src/routes/docs/+layout.svelte b/src/routes/docs/+layout.svelte deleted file mode 100644 index d3cf431..0000000 --- a/src/routes/docs/+layout.svelte +++ /dev/null @@ -1,37 +0,0 @@ - - -
- - -
-