docs: package update
This commit is contained in:
parent
4bd6454a16
commit
3dfa7e3290
6 changed files with 45 additions and 8 deletions
|
|
@ -86,7 +86,7 @@
|
|||
"watch-client": "npm run build-client-js -- --watch",
|
||||
"watch-browser": "npm run build-client-js -- --watch",
|
||||
"watch-css": "nodemon --watch src/scss -e scss -x \"npm run build-css -- --reload\"",
|
||||
"build-docs": "node scripts/build-widgets-reference.js > resources/docs/docs/widgets-reference.md && cd resources && mkdocs build --clean",
|
||||
"build-docs": "node scripts/build-widgets-reference.js > resources/docs/docs/widgets-reference.md && cd resources && node scripts/build-css.js && mkdocs build --clean",
|
||||
"test": "eslint src && npm run build && node tests/test.js"
|
||||
},
|
||||
"engines": {
|
||||
|
|
|
|||
1
resources/.gitignore
vendored
Normal file
1
resources/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
theme/styles.css
|
||||
17
resources/package.json
Normal file
17
resources/package.json
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"name": "open-stage-control-docs",
|
||||
"version": "1.0.0",
|
||||
"description": "```bash $ sudo apt-get install python python-pip # python package manager $ sudo pip install mkdocs # docs site builder $ sudo pip install mkdocs-material # theme",
|
||||
"main": "index.js",
|
||||
"directories": {
|
||||
"doc": "docs"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "node-sass -h"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"spectre.css": "^0.5.8"
|
||||
}
|
||||
}
|
||||
12
resources/scripts/build-css.js
Normal file
12
resources/scripts/build-css.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
var sass = require('node-sass'),
|
||||
path = require('path'),
|
||||
fs = require('fs')
|
||||
|
||||
var result = sass.renderSync({
|
||||
file: path.resolve(__dirname + '/../src/scss/styles.scss'),
|
||||
outFile: path.resolve(__dirname + '/../theme/styles.css'),
|
||||
outputStyle: 'compressed',
|
||||
sourceMap: false
|
||||
})
|
||||
|
||||
fs.writeFileSync(path.resolve(__dirname + '/../theme/styles.css'), result.css)
|
||||
|
|
@ -1,3 +1,7 @@
|
|||
$primary-color: rgb(75, 143, 210);
|
||||
@import "node_modules/spectre.css/src/spectre";
|
||||
|
||||
|
||||
body {
|
||||
color: #333;
|
||||
font-family: Helvetica,Arial,sans-serif;
|
||||
|
|
@ -13,10 +17,12 @@ body {
|
|||
.wrap {
|
||||
max-width: 1110px;
|
||||
}
|
||||
@media (max-width: 570px)
|
||||
.wrap, .full-width {
|
||||
min-width: 0;
|
||||
@media (max-width: 570px){
|
||||
.wrap, .full-width {
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.wrap {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
|
|
@ -42,7 +48,7 @@ body {
|
|||
position: fixed;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
background-color: #333;
|
||||
background-color: #3c4c68;
|
||||
box-shadow: 0 2px 4px -1px rgba(0,0,0,0.25);
|
||||
}
|
||||
|
||||
|
|
@ -247,8 +253,10 @@ h1:first-child {
|
|||
}
|
||||
|
||||
#mkdocs-search-query {
|
||||
border: 1px solid #333;
|
||||
background:rgba(0,0,0,0.25);
|
||||
/* border: 1px solid rgba(255,255,255,.1); */
|
||||
border:0;
|
||||
box-shadow: 0 -2px 10px 0 rgba(0,0,0,0.1) inset;
|
||||
background:rgba(0,0,0,0.15);
|
||||
border-radius: 15px;
|
||||
color: #eee;
|
||||
outline: none;
|
||||
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
<title>{% if page.title and not page.is_homepage %}{{ page.title }} - {% endif %}{{ config.site_name }}</title>
|
||||
|
||||
<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre.min.css">
|
||||
<link rel="stylesheet" href="{{ "/extensions/admonition.css"|url }}">
|
||||
<link rel="stylesheet" href="{{ "/extensions/codehilite.css"|url }}">
|
||||
<link rel="stylesheet" href="{{ "/styles.css"|url }}">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue