Skip to content

Commit

Permalink
feat: configure docs deployment to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail-iontsev committed Oct 20, 2024
1 parent dab7ac5 commit 62c5641
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

name: Deploy Docs

on:
push:
branches:
# make sure this is the branch you are using
- main
paths:
- 'docs/**'

permissions:
contents: write
Expand All @@ -18,10 +18,6 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
# if your docs needs submodules, uncomment the following line
# submodules: true



- name: Setup Node.js
uses: actions/setup-node@v3
Expand All @@ -30,18 +26,27 @@ jobs:
cache: npm

- name: Install Deps
working-directory: ./docs
run: npm ci

- name: Clean dist folder
run: rm -rf docs/.vuepress/dist

- name: Build Docs
working-directory: ./docs
env:
NODE_OPTIONS: --max_old_space_size=8192
run: |-
npm run docs:build
> docs/.vuepress/dist/.nojekyll
run: |
npm run docs:build || echo "Build failed"
- name: Verify dist folder exists
run: ls -la docs/.vuepress/dist

- name: Create .nojekyll file
run: echo "" > docs/.vuepress/dist/.nojekyll

- name: Deploy Docs
uses: JamesIves/github-pages-deploy-action@v4
with:
# This is the branch where the docs are deployed to
branch: gh-pages
folder: docs/.vuepress/dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ import { viteBundler } from '@vuepress/bundler-vite'

export default defineUserConfig({
lang: 'en-US',

base: '/Ares/',
title: 'Ares',
description: 'A Research Exploration System',

theme: defaultTheme({
logo: '../icon.png',

logo: './icon.png',
navbar: ['/', '/ares-docs'],
colorMode: 'dark',
colorModeSwitch: false,

}),
bundler: viteBundler(),
dest: '.vuepress/dist'
})
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion doc/docs/README.md → docs/docs/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
home: true
title: Home
heroImage: /icon.png
heroImage: ./icon.png
actions:
- text: Get Started
link: /ares-docs.html#installation
Expand Down
4 changes: 3 additions & 1 deletion doc/docs/ares-docs.md → docs/docs/ares-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,13 @@ cdmSourceName = 'synthea'
cdmVersion = "5.4" #do not change

aresDataDirectory = "./data" #output directory
sourceReleaseKey = AresIndexer::getSourceReleaseKey(connectionDetails, cdmDatabaseSchema)
sourceFolders = "./data" #source files folder for indexers.

connectionDetails <- Eunomia::getEunomiaConnectionDetails() #Provides a sample dataset

sourceReleaseKey = AresIndexer::getSourceReleaseKey(connectionDetails, cdmDatabaseSchema)


# Example connection details
#connectionDetails <- DatabaseConnector::createConnectionDetails(
# dbms = dbms, #your database management system
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "vite build --out-dir dist",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"postinstall": "npm install --prefix ./doc"
"postinstall": "npm install --prefix ./docs"
},
"dependencies": {
"@codemirror/lang-markdown": "^6.2.2",
Expand Down

0 comments on commit 62c5641

Please sign in to comment.