Skip to content

Commit

Permalink
documentation site files moved into a separate folder
Browse files Browse the repository at this point in the history
  • Loading branch information
alpondith committed Apr 6, 2023
1 parent db4470f commit 43c3d44
Show file tree
Hide file tree
Showing 36 changed files with 50 additions and 10 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,3 @@ coverage.*
# code generation test directory
test_codegen

# Documentation
node_modules
docs/.vitepress/cache
docs/.vitepress/dist
3 changes: 3 additions & 0 deletions documentation/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
docs/.vitepress/cache
docs/.vitepress/dist
47 changes: 47 additions & 0 deletions documentation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Documentation Guide

This documentation template has been built with [vitepress](https://vitepress.dev)

Use this extention while writing documentation : [markdownlint](https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint)

## Steps

Step 1: Clone the repository

```bash
git clone git@github.com:Ananto30/zero.git
```

Step 2: Move terminal inside documentation directory

```bash
cd documentation
```

Step 3: Install npm dependencies (your device should already have npm installed)

```bash
npm install
```

Step 4: Run the documentation site on browser for development

```bash
npm run docs:dev
```

Step 5: build website to publish

```bash
npm run docs:build
```

This command will create website files inside `documentation/docs/.vitepress/dist` directory. Inside `dist` directory generated website files will be avaliable.

Step 6 : preview the site locally before publishing.

```bash
npm run docs:preview
```

If everything is good, you can publish the website using the files existing inside `dist` directory.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ export default {
}
},

// Google Analytics
// head: [
// [ 'script', { async: '' , src: "https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX" } ],
// [ 'script', {} , "window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-XXXXXXXXXX');" ],
// ],

themeConfig: {
siteTitle: 'Zero',
logo : '/logo.png',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 43c3d44

Please sign in to comment.