diff --git a/.github/workflows/sass-compile.yml b/.github/workflows/sass-compile.yml new file mode 100644 index 0000000..df8d759 --- /dev/null +++ b/.github/workflows/sass-compile.yml @@ -0,0 +1,59 @@ +name: Compile SASS + +on: + push: + pull_request: + +jobs: + deploy: + runs-on: ubuntu-latest + + permissions: + contents: write + + concurrency: + group: cicd-docs + + steps: + - name: Checkout Git submodules + uses: actions/checkout@v4 + with: + submodules: true + fetch-depth: 0 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 'latest' + + - name: Install SASS Compiler + run: | + npm install -g html-minifier sass + + - name: Compile SASS + run: | + cd htdocs/css/ + sass "../../scss/nibblepoker.scss" -q --no-source-map > "nibblepoker.css" + sass "../../scss/nibblepoker.scss" -q --no-source-map --style compressed > "nibblepoker.min.css" + sass "../../scss/debugger.scss" -q --no-source-map > "debugger.css" + sass "../../scss/debugger.scss" -q --no-source-map --style compressed > "debugger.min.css" + + - name: Upload `.css` build artifact + uses: actions/upload-artifact@v4 + if: ${{ github.actor == 'aziascreations' }} + with: + name: nibblepoker.css + path: "./htdocs/css/nibblepoker.css" + if-no-files-found: error + retention-days: 90 + compression-level: 9 + + - name: Upload `.min.css` build artifact + uses: actions/upload-artifact@v4 + if: ${{ github.actor == 'aziascreations' }} + with: + name: nibblepoker.min.css + path: "./htdocs/css/nibblepoker.min.css" + if-no-files-found: error + retention-days: 90 + compression-level: 9 diff --git a/htdocs/img/maki-03.jpg b/htdocs/img/maki-03.jpg new file mode 100644 index 0000000..faac8b6 Binary files /dev/null and b/htdocs/img/maki-03.jpg differ diff --git a/htdocs/index.php b/htdocs/index.php index f413c9d..8456187 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -31,7 +31,7 @@

- NibbleCSS Documentation + NibbleCSS Documentation v0.0.1

@@ -105,6 +105,9 @@ + + +