diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d2698f8 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Build OpenEMS.io Theme + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Build ui-bundle + run: npm ci && gulp lint && gulp bundle + + - name: Save build-artifacts + uses: actions/upload-artifact@v4 + with: + compression-level: 0 + path: build/ui-bundle.zip diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..341942b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Prepare OpenEMS.io Theme Release + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Build ui-bundle + run: | + npm ci + gulp lint + gulp bundle + + - name: Create draft Release + uses: softprops/action-gh-release@v2 + with: + draft: true + files: | + build/ui-bundle.zip diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/preview-src/ui-model.yml b/preview-src/ui-model.yml index 9fa2e1a..1e321b2 100644 --- a/preview-src/ui-model.yml +++ b/preview-src/ui-model.yml @@ -1,8 +1,10 @@ antoraVersion: '1.0.0' site: - url: http://localhost:5252 - title: Brand Docs + url: https://github.com/OpenEMS/openems + title: OpenEMS // Docs homeUrl: &home_url /xyz/5.2/index.html + keys: + website: https://github.com/OpenEMS/openems components: - name: abc title: Project ABC @@ -62,7 +64,7 @@ page: displayVersion: '5.2' module: ROOT relativeSrcPath: index.adoc - editUrl: http://example.com/project-xyz/blob/main/index.adoc + editUrl: https://github.com/OpenEMS/openems/blob/develop/doc/modules/ROOT/pages/introduction.adoc origin: private: false previous: diff --git a/src/css/main.css b/src/css/main.css index 83a333c..cc2a82c 100644 --- a/src/css/main.css +++ b/src/css/main.css @@ -37,3 +37,12 @@ body.-toc aside.toc.sidebar { flex-basis: var(--toc-width--widescreen); } } + +.gitlink { + background: url(../img/github.svg) no-repeat 50% 45%; + background-size: 50%; + display: block; + height: 2.5rem; + padding: 0; + width: 2.5rem; +} diff --git a/src/css/vars.css b/src/css/vars.css index 91c9c09..8b5de53 100644 --- a/src/css/vars.css +++ b/src/css/vars.css @@ -17,6 +17,7 @@ --color-jet-70: #222; --color-jet-80: #191919; --color-black: #000; + --color-primary: #f0c693; /* fonts */ --rem-base: 18; /* used to compute rem value from desired pixel value (e.g., calc(18 / var(--rem-base) * 1rem) = 18px) */ --body-font-size: 1.0625em; /* 17px */ @@ -36,7 +37,7 @@ --scrollbar-thumb-color: var(--color-gray-10); --scrollbar_hover-thumb-color: var(--color-gray-30); /* navbar */ - --navbar-background: var(--color-jet-80); + --navbar-background: var(--color-primary); --navbar-font-color: var(--color-white); --navbar_hover-background: var(--color-black); --navbar-button-background: var(--color-white); @@ -79,7 +80,7 @@ --doc-line-height: 1.6; --doc-margin: 0 auto; --doc-margin--desktop: 0 2rem; - --heading-font-color: var(--color-jet-80); + --heading-font-color: var(--color-primary); --heading-font-weight: normal; --alt-heading-font-weight: var(--body-font-weight-bold); --section-divider-color: var(--panel-border-color); diff --git a/src/img/github.svg b/src/img/github.svg new file mode 100644 index 0000000..2f9e2d9 --- /dev/null +++ b/src/img/github.svg @@ -0,0 +1 @@ +GitHub icon \ No newline at end of file diff --git a/src/partials/footer.hbs b/src/partials/footer.hbs index 9d49017..f285830 100644 --- a/src/partials/footer.hbs +++ b/src/partials/footer.hbs @@ -1,2 +1 @@ -{{> footer-content}} {{> footer-scripts}} diff --git a/src/partials/header-content.hbs b/src/partials/header-content.hbs index f11bd60..eba525d 100644 --- a/src/partials/header-content.hbs +++ b/src/partials/header-content.hbs @@ -5,7 +5,7 @@ {{#if env.SITE_SEARCH_PROVIDER}} {{/if}} @@ -17,29 +17,13 @@ - + \ No newline at end of file diff --git a/src/partials/toolbar.hbs b/src/partials/toolbar.hbs index 797aa05..03fc2e3 100644 --- a/src/partials/toolbar.hbs +++ b/src/partials/toolbar.hbs @@ -4,6 +4,5 @@ {{/with}} {{> breadcrumbs}} -{{> page-versions}} {{> edit-this-page}}