mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-24 22:00:39 +00:00
chore: cleanup build setup and webpack requirements (#265)
This commit is contained in:
parent
2cd92c6343
commit
bf0981bcc6
@ -28,7 +28,7 @@ steps:
|
|||||||
- name: testbuild
|
- name: testbuild
|
||||||
image: thegeeklab/hugo:0.91.0
|
image: thegeeklab/hugo:0.91.0
|
||||||
commands:
|
commands:
|
||||||
- mkdir exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/hugo-geekdoc
|
- mkdir -p exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/hugo-geekdoc
|
||||||
- hugo -s exampleSite/ -b http://localhost/
|
- hugo -s exampleSite/ -b http://localhost/
|
||||||
|
|
||||||
- name: html-validation
|
- name: html-validation
|
||||||
@ -111,7 +111,6 @@ steps:
|
|||||||
- name: package
|
- name: package
|
||||||
image: thegeeklab/alpine-tools
|
image: thegeeklab/alpine-tools
|
||||||
commands:
|
commands:
|
||||||
- mkdir dist/
|
|
||||||
- echo "${DRONE_TAG:-latest}" > VERSION
|
- echo "${DRONE_TAG:-latest}" > VERSION
|
||||||
- tar -zcvf dist/hugo-geekdoc.tar.gz -X .tarignore .
|
- tar -zcvf dist/hugo-geekdoc.tar.gz -X .tarignore .
|
||||||
|
|
||||||
@ -195,7 +194,7 @@ steps:
|
|||||||
- npm install > /dev/null
|
- npm install > /dev/null
|
||||||
- npm run build
|
- npm run build
|
||||||
- npm run svg-sprite-list
|
- npm run svg-sprite-list
|
||||||
- mkdir exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/hugo-geekdoc
|
- mkdir -p exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/hugo-geekdoc
|
||||||
environment:
|
environment:
|
||||||
FORCE_COLOR: true
|
FORCE_COLOR: true
|
||||||
NPM_CONFIG_LOGLEVEL: error
|
NPM_CONFIG_LOGLEVEL: error
|
||||||
@ -285,6 +284,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: e715545ce951b15ce1ab5f7d7f107e2ab37aa08e94a681f27646a543d1e6ac3c
|
hmac: d45186c01b7b530fc615420c88bd6a375ac6979758cb6e12d45412cd78fc5642
|
||||||
|
|
||||||
...
|
...
|
||||||
|
@ -13,10 +13,10 @@
|
|||||||
"start:hugo": "hugo server -D -F -s exampleSite/",
|
"start:hugo": "hugo server -D -F -s exampleSite/",
|
||||||
"svg": "run-s svg:*",
|
"svg": "run-s svg:*",
|
||||||
"svg:sprite": "svg-sprite -C svgsprite.config.json 'src/icons/*.svg'",
|
"svg:sprite": "svg-sprite -C svgsprite.config.json 'src/icons/*.svg'",
|
||||||
"svg:font": "svgtofont --sources build/icons --output build/fonts",
|
"svg:font": "svgtofont --sources build/icons/ --output build/fonts/",
|
||||||
"prep:clean": "shx rm -rf build/ static/",
|
"prep:clean": "shx rm -rf build/ static/",
|
||||||
"prep:clean-all": "shx rm -rf build/ static/ data/ assets/sprites/ exampleSite/data/sprites",
|
"prep:clean-all": "shx rm -rf build/ dist/ static/ data/ assets/sprites/ exampleSite/data/sprites/",
|
||||||
"prep:make": "mkdir -p build/icons build/fonts",
|
"prep:make": "mkdir -p build/icons/ build/fonts/ dist/",
|
||||||
"svg-sprite-list": "run-s prep:make svg ; mkdir -p exampleSite/data/sprites/ ; cp build/fonts/GeekdocIcons.json exampleSite/data/sprites/geekdoc.json",
|
"svg-sprite-list": "run-s prep:make svg ; mkdir -p exampleSite/data/sprites/ ; cp build/fonts/GeekdocIcons.json exampleSite/data/sprites/geekdoc.json",
|
||||||
"lint": "eslint src/js/ --color"
|
"lint": "eslint src/js/ --color"
|
||||||
},
|
},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { applyTheme } from "./darkmode"
|
const { applyTheme } = require("./darkmode")
|
||||||
import { createCopyButton } from "./copycode.js"
|
const { createCopyButton } = require("./copycode.js")
|
||||||
|
const Clipboard = require("clipboard")
|
||||||
|
|
||||||
import Clipboard from "clipboard"
|
|
||||||
;(() => {
|
;(() => {
|
||||||
applyTheme()
|
applyTheme()
|
||||||
})()
|
})()
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import Storage from "store2"
|
const Storage = require("store2")
|
||||||
|
|
||||||
import { TOGGLE_MODES, THEME, AUTO_MODE } from "./config.js"
|
const { TOGGLE_MODES, THEME, AUTO_MODE } = require("./config.js")
|
||||||
|
|
||||||
document.addEventListener("DOMContentLoaded", (event) => {
|
document.addEventListener("DOMContentLoaded", (event) => {
|
||||||
const darkModeToggle = document.getElementById("gdoc-dark-mode")
|
const darkModeToggle = document.getElementById("gdoc-dark-mode")
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import Storage from "store2"
|
const Storage = require("store2")
|
||||||
|
const { DARK_MODE, THEME, AUTO_MODE } = require("./config.js")
|
||||||
import { DARK_MODE, THEME, AUTO_MODE } from "./config.js"
|
|
||||||
|
|
||||||
document.addEventListener("DOMContentLoaded", function (event) {
|
document.addEventListener("DOMContentLoaded", function (event) {
|
||||||
let lstore = Storage.namespace(THEME)
|
let lstore = Storage.namespace(THEME)
|
||||||
|
Loading…
Reference in New Issue
Block a user