Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Initial Commit for VuePress Test
Browse files Browse the repository at this point in the history
  • Loading branch information
cybermoloch committed Aug 23, 2020
1 parent e731714 commit 519b2ae
Show file tree
Hide file tree
Showing 119 changed files with 10,800 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
pids
logs
node_modules
npm-debug.log
coverage/
run
dist
.DS_Store
.nyc_output
.basement
config.local.js
basement_dist
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# psappdeploytoolkit-website
PSAppDeployToolkit Website
# PSAppDeploymentToolkit

> PowerShell Application Deployment Toolkit
## Development

```bash
yarn dev
yarn build
```

For more details, please head VuePress's [documentation](https://v1.vuepress.vuejs.org/).

24 changes: 24 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "PSAppDeploymentToolkit",
"version": "0.0.1",
"description": "PowerShell Application Deployment Toolkit",
"main": "index.js",
"authors": {
"name": "The PSAppDeployToolkit Team",
"email": "info@psappdeploytoolkit.com"
},
"repository": "https://github.com/PSAppDeploytToolkit//PSAppDeploymentToolkit",
"scripts": {
"dev": "vuepress dev src",
"build": "vuepress build src"
},
"license": "MIT",
"devDependencies": {
"@vuepress/plugin-back-to-top": "^1.3.1",
"@vuepress/plugin-medium-zoom": "^1.3.1",
"vuepress": "^1.3.1"
},
"dependencies": {
"vuepress-theme-reco": "^1.5.5"
}
}
15 changes: 15 additions & 0 deletions src/.vuepress/components/Foo/Bar.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<template>
<p class="demo">
{{ msg }}
</p>
</template>

<script>
export default {
data () {
return {
msg: 'Hello this is <Foo-Bar>'
}
}
}
</script>
3 changes: 3 additions & 0 deletions src/.vuepress/components/OtherComponent.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template>
<p class="demo">This is another component</p>
</template>
15 changes: 15 additions & 0 deletions src/.vuepress/components/demo-component.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<template>
<p class="demo">
{{ msg }}
</p>
</template>

<script>
export default {
data() {
return {
msg: 'Hello this is <demo-component>'
}
}
}
</script>
119 changes: 119 additions & 0 deletions src/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
const { description } = require('../../package')
// Auto sidebar for Functions, MIT License
// https://techformist.com/automatic-dynamic-sidebar-vuepress/
// https://techformist.com/license/
const fs = require("fs");
const path = require("path");

module.exports = {
/**
* Ref:https://v1.vuepress.vuejs.org/config/#title
*/
title: 'PSAppDeployToolkit',
/**
* Ref:https://v1.vuepress.vuejs.org/config/#description
*/
description: 'PowerShell Application Deployment Toolkit',

/**
* Extra tags to be injected to the page HTML `<head>`
*
* ref:https://v1.vuepress.vuejs.org/config/#head
*/
head: [
['meta', { name: 'theme-color', content: '#3eaf7c' }],
['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }]
],

/**
* Theme configuration, here is the default theme configuration for VuePress.
*
* ref:https://v1.vuepress.vuejs.org/theme/default-theme-config.html
*/
theme: 'reco',
themeConfig: {
noFoundPageByTencent: false,
codeTheme: 'tomorrow',
blogConfig: {
category: {
location: 1, // The position occupied in the navigation bar menu, default to 2
text: 'Blog' // Text default to "Category"
},
tag: {
location: 2, // The position occupied in the navigation bar menu, default to 3
text: 'Tag' // Text default to "Tag"
}
},
vssueConfig: {
platform: 'github',
owner: 'PSAppDeployToolkit',
repo: 'PSAppDeployToolkit-Website',
clientId: 'YOUR_CLIENT_ID',
clientSecret: 'YOUR_CLIENT_SECRET',
},
repo: 'https://github.com/PSAppDeployToolkit/PSAppDeployToolkit',
docsRepo: 'https://github.com/PSAppDeployToolkit/PSAppDeployToolkit-Website',
docsDir: '',
editLinks: true,
editLinkText: '',
lastUpdated: true,
nav: [
{
text: 'Guide',
link: '/guide/',
icon: 'reco-document'
},
{
text: 'Functions',
link: '/functions/',
icon: 'reco-api'
},
{
text: 'About',
ariaLabel: 'About Menu',
items: [
{ text: 'About PSADT', link: '/about/about-psadt' },
{ text: 'Screenshots', link: '/about/screenshots' },
{ text: 'Team', link: '/about/team' },
{ text: 'Donations', link: '/about/donations' },
{ text: 'Licensing', link: '/about/licensing' },
],
icon: 'reco-faq'
},
{
text: 'Forum',
link: 'https://discourse.psappdeploytoolkit.com/',
icon: 'reco-suggestion'
}
],
sidebar: {
'/guide/': getSideBar('guide','Guide'),
'/functions/': getSideBar('functions','Functions')
}
},

/**
* Apply plugins,ref:https://v1.vuepress.vuejs.org/zh/plugin/
*/
plugins: [
'@vuepress/plugin-back-to-top',
'@vuepress/plugin-medium-zoom'
]
}

function getSideBar(folder, title) {
const extension = [".md"];

const files = fs
.readdirSync(path.join(`${__dirname}/../${folder}`))
.filter(
item =>
item.toLowerCase() != "readme.md" &&
item != "readme.md" &&
fs.statSync(path.join(`${__dirname}/../${folder}`, item)).isFile() &&
extension.includes(path.extname(item))
);

return [{ title: title, children: ["", ...files] }];
}
14 changes: 14 additions & 0 deletions src/.vuepress/enhanceApp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* Client app enhancement file.
*
* https://v1.vuepress.vuejs.org/guide/basic-config.html#app-level-enhancements
*/

export default ({
Vue, // the version of Vue being used in the VuePress app
options, // the options for the root Vue instance
router, // the router instance for the app
siteData // site metadata
}) => {
// ...apply enhancements for the site.
}
Binary file added src/.vuepress/public/favicon.ico
Binary file not shown.
Loading

0 comments on commit 519b2ae

Please sign in to comment.