Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
move docs to root
Browse files Browse the repository at this point in the history
  • Loading branch information
adr1enbe4udou1n committed Jun 13, 2020
1 parent 258cadd commit ba13c85
Show file tree
Hide file tree
Showing 130 changed files with 24 additions and 34 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
node_modules
lib
dist
/docs

# Log files
npm-debug.log*
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ build-admin: ## compile the admin library to static js
@cd ./packages/admin && yarn -s build

run-docs: ## run the docs
@cd ./packages/docs && yarn dev --port 9000
@cd ./docs && yarn docs:dev --port 9000

build-docs: ## compile the docs into to static js
@cd ./packages/docs && yarn -s build
@cd ./docs && yarn -s docs:build

build-all: ## build all admin lib, demo and docs
@make build-admin
Expand Down
Binary file modified README.md
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module.exports = (ctx) => ({
dest: "../../docs",
locales: {
"/": {
lang: "en-US",
Expand Down Expand Up @@ -50,7 +49,7 @@ module.exports = (ctx) => ({
themeConfig: {
repo: "okami101/vtec-admin",
editLinks: true,
docsDir: "packages/docs",
docsDir: "docs",
// #697 Provided by the official algolia team.
algolia: ctx.isProd
? {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
const fs = require("fs");
const { getDocComponents, getDocMixins } = require("../../admin/docgen");
const path = require("path");
const { getDocComponents, getDocMixins } = require("../../packages/admin/docgen");
const { get, upperFirst, camelCase, kebabCase } = require("lodash");

module.exports = async (md) => {
let docComponents = await getDocComponents("../admin");
let docMixins = await getDocMixins("../admin");
let docComponents = await getDocComponents("./packages/admin");
let docMixins = await getDocMixins("./packages/admin");

let getJsonSchemaData = (type, definition) => {
let data = JSON.parse(
fs.readFileSync(`.vuepress/public/schemas/${type}.json`)
fs.readFileSync(path.resolve(__dirname, `public/schemas/${type}.json`))
);

let def = get(data.definitions, definition);
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.
16 changes: 14 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
{
"name": "root",
"description": "Vtec Admin",
"repository": "https://github.com/okami101/vtec-admin",
"author": "Adrien Beaudouin",
"license": "MIT",
"private": true,
"scripts": {
"lint": "eslint --ext .js,.vue packages packages/docs/.vuepress"
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs",
"lint": "eslint --ext .js,.vue packages docs/.vuepress"
},
"devDependencies": {
"@vue/eslint-config-prettier": "^6.0.0",
"@vuepress/plugin-back-to-top": "^1.4.0",
"@vuepress/plugin-google-analytics": "^1.5.1",
"@vuepress/plugin-medium-zoom": "^1.4.0",
"@vuepress/plugin-pwa": "^1.4.0",
"babel-eslint": "^10.1.0",
"eslint": "^6.8.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-vue": "^6.2.2",
"lerna": "^3.22.0",
"prettier": "^2.0.5"
"prettier": "^2.0.5",
"vuepress": "^1.4.0",
"vuepress-plugin-code-copy": "^1.0.6"
},
"workspaces": [
"packages/*",
Expand Down
21 changes: 0 additions & 21 deletions packages/docs/package.json

This file was deleted.

4 changes: 2 additions & 2 deletions vtec-admin.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
"path": "packages\\cli"
},
{
"path": "packages\\docs"
"path": "docs"
}
],
"settings": {
"yaml.schemas": {
"packages/docs/.vuepress/public/schemas/generator.json": ["examples/generators/admin/generators/*"],
"docs/.vuepress/public/schemas/generator.json": ["examples/generators/admin/generators/*"],
}
}
}

0 comments on commit ba13c85

Please sign in to comment.