Skip to content

Commit

Permalink
restore config_docs
Browse files Browse the repository at this point in the history
  • Loading branch information
previ committed Jun 10, 2023
1 parent 9d88387 commit 8829214
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Sample workflow for building and deploying a Nuxt site to GitHub Pages
#
# To get started with Nuxt see: https://nuxtjs.org/docs/get-started/installation
#
name: Build and publish docs to GitHub Pages

on:
Expand Down Expand Up @@ -48,8 +44,8 @@ jobs:
run: npm ci
- name: Static HTML export with VitePress - /docs (for coderbot)
run: |
mv ./docs/.vitepress/config.js ./docs/.vitepress/config_root.js
mv ./docs/.vitepress/config_docs.js ./docs/.vitepress/config.js
mv ./docs/.vitepress/config.ts ./docs/.vitepress/config_root.ts
mv ./docs/.vitepress/config_docs.ts ./docs/.vitepress/config.ts
npm run docs:build
tar czf ./docs.tgz -C ./docs/.vitepress/dist .
- name: Create Release
Expand All @@ -64,8 +60,8 @@ jobs:
prerelease: false
- name: Static HTML export with VitePress - / (for website)
run: |
mv ./docs/.vitepress/config.js ./docs/.vitepress/config_docs.js
mv ./docs/.vitepress/config_root.js ./docs/.vitepress/config.js
mv ./docs/.vitepress/config.ts ./docs/.vitepress/config_docs.ts
mv ./docs/.vitepress/config_root.ts ./docs/.vitepress/config.ts
npm run docs:build
- name: Upload built docs to Release
uses: actions/upload-release-asset@v1
Expand Down
52 changes: 52 additions & 0 deletions docs/.vitepress/config_docs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import { defineConfig } from 'vitepress';

export default defineConfig({
base: "/docs",
title: 'Documentazione di CoderBot',
description: 'Guida all\'uso di CoderBot',
themeConfig: {
search: {
provider: 'local'
},
outlineTitle: 'Su questa pagina',
sidebar: [
{
text: 'Kit di montaggio',
items: [
{ text: 'Istruzioni di montaggio', link: '/kit/' },
{ text: 'Elenco delle parti', link: '/description/' },
]
},
{
text: 'Manuale di configurazione',
items: [
{ text: 'Avvio', link: '/manual/#messa-in-funzione' },
{ text: 'Ricarica della Batteria', link: '/manual/#ricarica-della-batteria' },
{ text: 'Impostazioni', link: '/manual/#impostazioni' },
{ text: 'Aggiornamento', link: '/manual/#aggiornamento' },
{ text: 'Ripristino', link: '/manual/#ripristino-impostazioni' },
]
},
{
text: 'Manuale d\'uso',
items: [
{ text: 'Programmazione', link: '/usermanual/#programmazione' },
{ text: 'Attività', link: '/usermanual/#attivita' },
{ text: 'Blocchi', link: '/usermanual/blocks/' },
{ text: 'Programmi', link: '/usermanual/programs/' },
]
},
{
text: 'Guide',
items: [
{ text: 'Muovere CoderBot', link: '/guides/#muovere-coderbot' },
{ text: 'Programmiamo con i sensori', link: '/guides/#programmiamo-con-i-sensori' },
]
},
]
},
head: [
['script', {async: true, src: 'https://www.googletagmanager.com/gtag/js?id=G-JH5JX4PBZG'}],
['script', {}, "window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-JH5JX4PBZG');"]
]
});

0 comments on commit 8829214

Please sign in to comment.