forked from openhab/openhab-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enancement] - Simplify local builds to lower bar for beginners
Fixes openhab#2215
- Loading branch information
Showing
9 changed files
with
19,984 additions
and
2,663 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
addons-* | ||
public/logos | ||
tmp | ||
dist |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import { DefaultThemeConfig, UserConfig, defineConfig } from "vuepress/config"; | ||
|
||
const DocsSidebarNavigation = require('./docs-sidebar.js') | ||
|
||
const base = process.env.OH_DOCS_VERSION | ||
? `/v${process.env.OH_DOCS_VERSION}/` | ||
: '/' | ||
|
||
const config: UserConfig<DefaultThemeConfig> = { | ||
title: 'v4 Documentation Preview', | ||
description: 'This is a preview of the main parts of the documentation, found in the openhab/openhab-docs repository', | ||
dest: 'vuepress', | ||
host: 'localhost', | ||
plugins: [ | ||
// @ts-ignore | ||
'tabs', | ||
'container' | ||
], | ||
// @ts-ignore | ||
base: base, | ||
patterns: [ | ||
'docs/**/*.md', | ||
'addons/integrations/**/*.md', | ||
'**/*.vue'], | ||
head: [ | ||
['link', { rel: 'stylesheet', href: `/fonts/fonts.css` }], | ||
['link', { rel: 'icon', href: `/favicon.ico` }], | ||
['link', { rel: 'shortcut icon', href: `/favicon.ico` }], | ||
['link', { rel: 'apple-touch-icon', href: `/apple-icon.png` }], | ||
['meta', { property: 'og:type', content: 'website' }], | ||
['meta', { property: 'og:image', content: 'https://www.openhab.org/og-image.png' }], | ||
|
||
], | ||
themeConfig: { | ||
logo: `/openhab-logo.png`, | ||
editLinks: false, | ||
activeHeaderLinks: false, | ||
sidebarDepth: 0, | ||
docsDir: 'docs', | ||
nav: [ | ||
{ | ||
text: 'Documentation', | ||
link: '/docs/', | ||
}, | ||
{ | ||
text: 'GitHub', | ||
link: 'https://github.com/openhab/openhab-docs', | ||
} | ||
], | ||
sidebar: { | ||
'/docs/': DocsSidebarNavigation | ||
} | ||
} | ||
}; | ||
|
||
export default defineConfig(config); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.