add vuepress for documentation

This commit is contained in:
mahula 2024-02-20 21:57:13 +01:00
parent 75c297b692
commit bdcb8939a7
9 changed files with 3717 additions and 231 deletions

4
.gitignore vendored
View File

@ -1 +1,3 @@
node_modules/
node_modules/
.vuepress/.cache
.vuepress/.temp

53
.vuepress/config.ts Normal file
View File

@ -0,0 +1,53 @@
import { defineUserConfig } from 'vuepress'
import { viteBundler } from '@vuepress/bundler-vite'
import { hopeTheme } from 'vuepress-theme-hope'
export default defineUserConfig({
// meta
title: 'IT4C - E2E Cypress Cucumber Boilerplate Documentation',
description: 'IT4C - E2E Cypress Cucumber Boilerplate Documentation',
dest: 'build/docs',
base: process.env.VUEPRESS_BASE ? `/${process.env.VUEPRESS_BASE}/` : '/',
pagePatterns: ['**/*.md', '**/LICENSE', '!.vuepress', '!node_modules'],
// bundler
bundler: viteBundler({}),
// theme
theme: hopeTheme({
favicon: 'favicon.ico',
logo: '/it4c-logo2-clean-bg_alpha-128x128.png',
contributors: false,
docsBranch: 'master',
docsDir: '.',
docsRepo: 'https://github.com/IT4Change/boilerplate-e2e-cypress-cucumber',
editLink: true,
lastUpdated: false,
print: false,
repo: 'IT4Change/boilerplate-e2e-cypress-cucumber',
repoLabel: 'GitHub',
repoDisplay: true,
navbarLayout: {
start: ['Brand'],
end: ['Repo', 'Outlook', 'Search'],
},
plugins: {
mdEnhance: {
tabs: true,
imgSize: true
},
searchPro: {
indexContent: true,
autoSuggestions: true,
customFields: [
{
getter: (page) => page.frontmatter.category,
formatter: "Category: $content",
},
{
getter: (page) => page.frontmatter.tag,
formatter: "Tag: $content",
},
],
}
}
}),
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

3874
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -19,13 +19,16 @@
"eslint",
"npm",
"nodejs",
"typescript"
"typescript",
"vuepress"
],
"author": "mahula",
"license": "Apache-2.0",
"scripts": {
"cypress:open": "cypress open --e2e --browser electron",
"cypress:run": "cypress run --e2e --browser electron",
"docs:dev": "vuepress dev .",
"docs:build": "vuepress build .",
"test:lint:eslint": "eslint --ext .ts,.tsx,.js,.jsx,.cjs,.json,.yml,.yaml --max-warnings 0 ."
},
"devDependencies": {
@ -34,6 +37,7 @@
"@eslint-community/eslint-plugin-eslint-comments": "^4.1.0",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"@typescript-eslint/parser": "^7.0.1",
"@vuepress/bundler-vite": "^2.0.0-rc.8",
"cypress": "^13.6.4",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
@ -49,10 +53,9 @@
"multiple-cucumber-html-reporter": "^3.6.2",
"prettier": "^3.2.5",
"ts-loader": "^9.5.1",
"typescript": "^5.3.3"
},
"engines": {
"node": "^20.2.0"
"typescript": "^5.3.3",
"vuepress": "^2.0.0-rc.0",
"vuepress-theme-hope": "^2.0.0-rc.25"
},
"cypress-cucumber-preprocessor": {
"nonGlobalStepDefinitions": true,
@ -65,5 +68,9 @@
"enabled": true,
"output": "cypress/reports/messages/cucumber-messages.ndjson"
}
},
"dependencies": {
"@vuepress/theme-default": "^2.0.0-rc.15",
"vuepress-plugin-search-pro": "^2.0.0-rc.25"
}
}