Update extractor to run on every commit
This commit is contained in:
@ -15,16 +15,15 @@ const SNIPPETS_ARCHIVE_PATH = `./${config.snippetArchivePath}`;
|
|||||||
const GLOSSARY_PATH = `./${config.glossaryPath}`;
|
const GLOSSARY_PATH = `./${config.glossaryPath}`;
|
||||||
const OUTPUT_PATH = `./${config.snippetDataPath}`;
|
const OUTPUT_PATH = `./${config.snippetDataPath}`;
|
||||||
|
|
||||||
// Check if running on Travis, only build for cron jobs and custom builds
|
// Terminate if parent commit is a Travis build
|
||||||
if (
|
if (
|
||||||
util.isTravisCI() &&
|
util.isTravisCI() &&
|
||||||
process.env['TRAVIS_EVENT_TYPE'] !== 'cron' &&
|
/^Travis build: \d+/g.test(process.env['TRAVIS_COMMIT_MESSAGE'])
|
||||||
process.env['TRAVIS_EVENT_TYPE'] !== 'api'
|
|
||||||
) {
|
) {
|
||||||
console.log(
|
console.log(
|
||||||
`${green(
|
`${green(
|
||||||
'NOBUILD',
|
'NOEXTRACT',
|
||||||
)} snippet extraction terminated, not a cron or api build!`,
|
)} Snippet extraction terminated, parent commit is a Travis build!`,
|
||||||
);
|
);
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,8 +32,8 @@ header.menu {
|
|||||||
.content {
|
.content {
|
||||||
transition: 0.3s ease all;
|
transition: 0.3s ease all;
|
||||||
grid-area: content;
|
grid-area: content;
|
||||||
overflow-x: hidden;
|
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
background: var(--back-color);
|
background: var(--back-color);
|
||||||
&::-webkit-scrollbar-track {
|
&::-webkit-scrollbar-track {
|
||||||
background-color: var(--scrollbar-back-color);
|
background-color: var(--scrollbar-back-color);
|
||||||
|
|||||||
Reference in New Issue
Block a user