Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: Rewrite documentation in Vitepress #1

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions .github/workflows/build-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Deploy VitePress site to Pages

on:
push:
branches: [vitepress]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: vitepress/pnpm-lock.yaml

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Install dependencies
run: pnpm -C vitepress install

- name: Build with VitePress
run: pnpm -C vitepress docs:build

- name: Run preview job on the background
run: pnpm -C vitepress docs:preview &

- name: Wait for the preview job
uses: iFaxity/[email protected]
with:
resource: tcp:4173

- name: Generate Library PDF
run: |
pnpm -C vitepress docs:print
pkill -f docs:preview

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: vitepress/src/.vitepress/dist

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
66 changes: 0 additions & 66 deletions .github/workflows/build-lib.yaml

This file was deleted.

7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
cache
temp
dist
.idea
.vscode
.temp
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/codeStyles/codeStyleConfig.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/competitive-programming.iml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

24 changes: 0 additions & 24 deletions Writerside/biblioteca.tree

This file was deleted.

6 changes: 0 additions & 6 deletions Writerside/c.list

This file was deleted.

19 changes: 0 additions & 19 deletions Writerside/cfg/buildprofiles.xml

This file was deleted.

7 changes: 0 additions & 7 deletions Writerside/cfg/glossary.xml

This file was deleted.

Binary file removed Writerside/images/completion_procedure.png
Binary file not shown.
Binary file removed Writerside/images/completion_procedure_dark.png
Binary file not shown.
Binary file removed Writerside/images/convert_table_to_xml.png
Binary file not shown.
Binary file removed Writerside/images/convert_table_to_xml_dark.png
Binary file not shown.
Binary file removed Writerside/images/favicons/icon16.png
Binary file not shown.
Binary file removed Writerside/images/favicons/icon32.png
Binary file not shown.
Binary file removed Writerside/images/favicons/icon96.png
Binary file not shown.
Binary file removed Writerside/images/new_topic_options.png
Binary file not shown.
Binary file removed Writerside/images/new_topic_options_dark.png
Binary file not shown.
10 changes: 0 additions & 10 deletions Writerside/snippets.tree

This file was deleted.

8 changes: 0 additions & 8 deletions Writerside/topics/biblioteca.md

This file was deleted.

6 changes: 0 additions & 6 deletions Writerside/topics/estruturas/dsu.md

This file was deleted.

1 change: 0 additions & 1 deletion Writerside/topics/estruturas/estruturas.md

This file was deleted.

22 changes: 0 additions & 22 deletions Writerside/topics/estruturas/segtrees.md

This file was deleted.

15 changes: 0 additions & 15 deletions Writerside/topics/grafos/ciclos.md

This file was deleted.

1 change: 0 additions & 1 deletion Writerside/topics/grafos/grafos.md

This file was deleted.

25 changes: 0 additions & 25 deletions Writerside/topics/grafos/menor-caminho.md

This file was deleted.

7 changes: 0 additions & 7 deletions Writerside/topics/programacao-dinamica/mochila.md

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions Writerside/topics/snippets.md

This file was deleted.

5 changes: 0 additions & 5 deletions Writerside/v.list

This file was deleted.

Loading