diff --git a/.github/actions/check/action.yaml b/.github/actions/check/action.yaml index 6854835..57cee26 100644 --- a/.github/actions/check/action.yaml +++ b/.github/actions/check/action.yaml @@ -1,6 +1,5 @@ name: "Check" description: "Checks code" -runs: +runs: using: "docker" image: "Dockerfile" - entrypiont: "./entrypoint.sh" diff --git a/.github/actions/check/entrypoint.sh b/.github/actions/check/entrypoint.sh index 8104643..498b627 100755 --- a/.github/actions/check/entrypoint.sh +++ b/.github/actions/check/entrypoint.sh @@ -1,3 +1,4 @@ -#!/bin/sh +#!/bin/sh -l + set -e yarn install && yarn test:check-code diff --git a/.github/actions/publish/action.yaml b/.github/actions/publish/action.yaml index cade3ab..9bf14f4 100644 --- a/.github/actions/publish/action.yaml +++ b/.github/actions/publish/action.yaml @@ -1,6 +1,6 @@ name: "Publish to VSCE" description: "Checks code" -runs: +runs: using: "docker" image: "Dockerfile" - entrypiont: "./entrypoint.sh" + entrypoint: "./entrypoint.sh" diff --git a/.github/actions/publish/entrypoint.sh b/.github/actions/publish/entrypoint.sh index 9a37343..cb4cf52 100755 --- a/.github/actions/publish/entrypoint.sh +++ b/.github/actions/publish/entrypoint.sh @@ -1,4 +1,5 @@ -#!/bin/sh +#!/bin/sh -l + yarn install \ && yarn prepublish \ && yarn vscode:publish diff --git a/.github/actions/release/action.yaml b/.github/actions/release/action.yaml index 208b46c..2feb6dc 100644 --- a/.github/actions/release/action.yaml +++ b/.github/actions/release/action.yaml @@ -1,6 +1,5 @@ name: "Create Release" description: "Create Release" -runs: +runs: using: "docker" image: "Dockerfile" - entrypiont: "./entrypoint.sh" \ No newline at end of file diff --git a/.github/actions/release/entrypoint.sh b/.github/actions/release/entrypoint.sh index 6191ac3..7e4aac3 100755 --- a/.github/actions/release/entrypoint.sh +++ b/.github/actions/release/entrypoint.sh @@ -1,3 +1,4 @@ -#!/bin/sh +#!/bin/sh -l + yarn install \ && yarn run release diff --git a/demo/asciidoc.adoc b/demo/asciidoc.adoc new file mode 100644 index 0000000..a2b636a --- /dev/null +++ b/demo/asciidoc.adoc @@ -0,0 +1,14 @@ += Neon Night: level-0 title + +== level-1 title +This is some *bold* text. +This is _italic_ text. +This is a `monospace` text. + +=== level-2 title + +[source,shell] +---- + GPG_TTY=$(tty) + export GPG_TTY +---- diff --git a/src/generate-theme.js b/src/generate-theme.js index fd03f4e..38fc995 100644 --- a/src/generate-theme.js +++ b/src/generate-theme.js @@ -36,10 +36,11 @@ const generateTheme = ( ...require(`./colors/integrated-terminal`)(palette), ...require(`./colors/debug`)(palette), ...require(`./colors/git`)(palette), - ...require(`./colors/breadcrumbs`)(palette) + ...require(`./colors/breadcrumbs`)(palette), }, tokenColors: [ ...require(`./token-colors/base`)(palette, fontStyleEnabled), + ...require(`./token-colors/asciidoc`)(palette, fontStyleEnabled), ...require(`./token-colors/clojure`)(palette, fontStyleEnabled), ...require(`./token-colors/css`)(palette, fontStyleEnabled), ...require(`./token-colors/docker`)(palette, fontStyleEnabled), @@ -49,8 +50,8 @@ const generateTheme = ( ...require(`./token-colors/json`)(palette, fontStyleEnabled), ...require(`./token-colors/makefile`)(palette), ...require(`./token-colors/markdown`)(palette, fontStyleEnabled), - ...require(`./token-colors/yaml`)(palette) - ] + ...require(`./token-colors/yaml`)(palette), + ], }); module.exports = generateTheme; diff --git a/src/token-colors/asciidoc.js b/src/token-colors/asciidoc.js new file mode 100644 index 0000000..086e1d1 --- /dev/null +++ b/src/token-colors/asciidoc.js @@ -0,0 +1,61 @@ +// @flow + +/* :: +import type {Palette, FontStyles} from '../types' +*/ + +const asciidoc = ( + palette /*: Palette */, + fontStyleEnabled /*: FontStyles */ +) => [ + { + name: `AsciiDoc - Heading 0-6`, + scope: [ + `markup.heading.heading-0.asciidoc`, + `markup.heading.heading-1.asciidoc`, + `markup.heading.heading-2.asciidoc`, + `markup.heading.heading-3.asciidoc`, + `markup.heading.heading-4.asciidoc`, + `markup.heading.heading-5.asciidoc`, + `markup.heading.heading-6.asciidoc`, + ], + settings: { + foreground: palette.magenta, + }, + }, + { + name: `AsciiDoc - Fenced Bode Block`, + scope: [ + `text.asciidoc markup.code markup.heading`, + `text.asciidoc markup.code markup.heading entity.name.function`, + ], + settings: { + foreground: palette.blue, + }, + }, + { + name: `AsciiDoc - Bold`, + scope: [`markup.bold.asciidoc`], + settings: { + fontStyle: `bold`, + }, + }, + { + name: `AsciiDoc - Italic`, + scope: [`markup.italic.asciidoc`], + settings: { + fontStyle: `italic`, + }, + }, + + { + name: `AsciiDoc - Italic`, + scope: [`markup.raw.monospace.asciidoc`], + settings: { + fontStyle: `bold`, + foreground: palette.blue, + }, + }, +]; + +module.exports = asciidoc;