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

Issue 69: Move to vite press #71

Closed
wants to merge 8 commits into from
Closed
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
6 changes: 3 additions & 3 deletions .github/workflows/containerize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 'v16.20.0'
node-version: 'v20.11.0'

- name: Build VuePress Static Content
run: npm install; npm run build
run: npm install; npm run docs:build

- name: Docker Login
# You may pin to the exact commit or the version.
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Required to comment on the MR
permissions:
permissions:
id-token: write
contents: read
issues: write
Expand All @@ -34,31 +34,31 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 'v16.20.0'
node-version: 'v20.11.0'

# Our staging config is slightly different than our normal config
- name: Setup Staging Config
run: cp src/.vuepress/config-staging.js src/.vuepress/config.js
- name: Setup Staging Config
run: cp src/.vuepress/config-staging.js src/.vuepress/config.js

- name: Build VuePress Static Content
run: npm install; npm run build
run: npm install; npm run docs:build

# Push our site up so it can be used in GitHub Pages
- name: Upload artifact
uses: actions/[email protected]
with:
# Upload entire repository
path: 'dist'

# Deploy our uploaded artifact to pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]

- name: Create comment
uses: actions/github-script@v6
with:
Expand All @@ -68,4 +68,4 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Staging environment is ready at ${{ steps.deployment.outputs.page_url }}'
})
})
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
node_modules
yarn.lock
.history
package-lock.json
package-lock.json
.idea
**/.vitepress/cache/**
19 changes: 5 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
{
"name": "cloud-native-app-dev",
"version": "1.0.0",
"description": "VuePress Site For Cloud-Native AppDev",
"repository": "[email protected]:redhat-appdev-practice/redhat-appdev-practice.github.io.git",
"author": "Deven Phillips <[email protected]>",
"license": "Apache-2.0",
"private": false,
"scripts": {
"build": "vuepress build src/ -d ./dist && cp google*html ./dist/",
"dev": "vuepress dev --host 0.0.0.0 src/"
"docs:dev": "vitepress dev src",
"docs:build": "vitepress build src --outDir ./dist",
"docs:preview": "vitepress preview src"
},
"devDependencies": {
"vue-tabs-component": "^1.5.0",
"vuepress": "^1.9.9",
"vuepress-plugin-code-copy": "^1.0.6",
"vuepress-plugin-google-analytics-4": "^0.1.1",
"vuepress-plugin-tabs": "^0.3.0"
"vitepress": "^1.0.0-rc.36",
"vitepress-plugin-tabs": "^0.5.0"
}
}
37 changes: 37 additions & 0 deletions src/.vitepress/cache/deps/_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"hash": "01caf3d5",
"configHash": "90a2fbac",
"lockfileHash": "c48a80ee",
"browserHash": "f296ff24",
"optimized": {
"vue": {
"src": "../../../../node_modules/vue/dist/vue.runtime.esm-bundler.js",
"file": "vue.js",
"fileHash": "8d8cd2cd",
"needsInterop": false
},
"vitepress > @vue/devtools-api": {
"src": "../../../../node_modules/@vue/devtools-api/lib/esm/index.js",
"file": "vitepress___@vue_devtools-api.js",
"fileHash": "c1a4a89a",
"needsInterop": false
},
"vitepress > @vueuse/core": {
"src": "../../../../node_modules/@vueuse/core/index.mjs",
"file": "vitepress___@vueuse_core.js",
"fileHash": "395fc265",
"needsInterop": false
},
"vitepress-plugin-tabs/client": {
"src": "../../../../node_modules/vitepress-plugin-tabs/src/client/index.ts",
"file": "vitepress-plugin-tabs_client.js",
"fileHash": "3a360abc",
"needsInterop": false
}
},
"chunks": {
"chunk-HL7EECYQ": {
"file": "chunk-HL7EECYQ.js"
}
}
}
Loading
Loading