beautify docs html befor publishing
This commit is contained in:
parent
5e306a8aae
commit
5ed50835c2
|
@ -243,7 +243,7 @@ local PipelineDocs = {
|
|||
'link-validator -ro',
|
||||
],
|
||||
environment: {
|
||||
LINK_VALIDATOR_BASE_DIR: 'exampleSite/public',
|
||||
LINK_VALIDATOR_BASE_DIR: 'docs/public',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
@ -261,6 +261,18 @@ local PipelineDocs = {
|
|||
'cd docs/ && hugo-official',
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'beautify',
|
||||
image: 'node:lts-alpine',
|
||||
commands: [
|
||||
'npm install -g js-beautify',
|
||||
"html-beautify -r -f 'docs/public/**/*.html'",
|
||||
],
|
||||
environment: {
|
||||
FORCE_COLOR: true,
|
||||
NPM_CONFIG_LOGLEVEL: 'error',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'publish',
|
||||
image: 'plugins/s3-sync',
|
||||
|
|
15
.drone.yml
15
.drone.yml
|
@ -361,7 +361,7 @@ steps:
|
|||
commands:
|
||||
- link-validator -ro
|
||||
environment:
|
||||
LINK_VALIDATOR_BASE_DIR: exampleSite/public
|
||||
LINK_VALIDATOR_BASE_DIR: docs/public
|
||||
|
||||
- name: assets
|
||||
image: byrnedo/alpine-curl
|
||||
|
@ -374,6 +374,15 @@ steps:
|
|||
commands:
|
||||
- cd docs/ && hugo-official
|
||||
|
||||
- name: beautify
|
||||
image: node:lts-alpine
|
||||
commands:
|
||||
- npm install -g js-beautify
|
||||
- html-beautify -r -f 'docs/public/**/*.html'
|
||||
environment:
|
||||
FORCE_COLOR: true
|
||||
NPM_CONFIG_LOGLEVEL: error
|
||||
|
||||
- name: publish
|
||||
image: plugins/s3-sync
|
||||
settings:
|
||||
|
@ -456,4 +465,8 @@ trigger:
|
|||
depends_on:
|
||||
- docs
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: af3f94eba4fbf0f057d225eaf237ef36b5631e3121a7d1beb54a1dbb0938caaf
|
||||
|
||||
...
|
||||
|
|
Loading…
Reference in New Issue