Compare commits

4 Commits

Author SHA1 Message Date
3fbf08aea6 Finished CICD SASS compiler, Added broken example page
Some checks failed
Compile SASS / deploy (push) Has been cancelled
Update sass-compile.yml, maki-03.jpg, and 5 more files...
2024-11-26 21:04:00 +01:00
f2833469dc Fixed artifact name, testing author name condition
Update sass-compile.yml
2024-11-26 21:02:28 +01:00
fba4c20b47 Added artifact step
Update sass-compile.yml
2024-11-26 20:56:57 +01:00
ecf86920e7 Added first version of SASS CICD
Update sass-compile.yml
2024-11-26 20:53:58 +01:00
8 changed files with 40 additions and 48 deletions

2
.gitattributes vendored
View File

@@ -1,2 +0,0 @@
# Preventing this repo from turning into a PHP repository
*.php -linguist-vendored

View File

@@ -1,11 +1,11 @@
name: Build Everything name: Compile SASS
on: on:
push: push:
pull_request: pull_request:
jobs: jobs:
sass_compile: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
@@ -21,12 +21,6 @@ jobs:
submodules: true submodules: true
fetch-depth: 0 fetch-depth: 0
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: none
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
@@ -34,7 +28,7 @@ jobs:
- name: Install SASS Compiler - name: Install SASS Compiler
run: | run: |
npm install -g sass npm install -g html-minifier sass
- name: Compile SASS - name: Compile SASS
run: | run: |
@@ -63,21 +57,3 @@ jobs:
if-no-files-found: error if-no-files-found: error
retention-days: 90 retention-days: 90
compression-level: 9 compression-level: 9
- name: Pre-render PHP File
run: |
cd htdocs
php ./index.php > ./index.html
- name: Remove trash
run: |
cd htdocs
rm -rf parts/
rm *.php
- name: Deploy demo page to gh-pages
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./htdocs

21
dockerize.cmd Normal file
View File

@@ -0,0 +1,21 @@
@echo off
setlocal enabledelayedexpansion
:: Going into the script's directory
cd /D "%~dp0"
:dockerize
echo.
echo Preparing the container
echo -----------------------
:dockerize-up
pushd %CD%
docker-compose -f docker-compose.dev.yml up -d --force-recreate
popd
:dockerize-end
:end

View File

@@ -7,10 +7,10 @@
<!--<meta name="viewport" content="width=device-width"/>--> <!--<meta name="viewport" content="width=device-width"/>-->
<meta name="author" content="Herwin Bozet"> <meta name="author" content="Herwin Bozet">
<meta name="robots" content="index, follow"> <meta name="robots" content="index, follow">
<link rel="icon" type="image/svg+xml" href="./favicon.svg"> <link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="alternate icon" href="./favicon.ico"> <link rel="alternate icon" href="/favicon.ico">
<link rel="stylesheet" href="./css/nibblepoker.min.css"> <link rel="stylesheet" href="/css/nibblepoker.min.css">
<link rel="stylesheet" href="./css/debugger.min.css"> <link rel="stylesheet" href="/css/debugger.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"
crossorigin="anonymous" crossorigin="anonymous"
referrerpolicy="no-referrer" /> referrerpolicy="no-referrer" />
@@ -124,8 +124,8 @@
</a> </a>
</footer> </footer>
<script src="./js/sidebar.js"></script> <script src="/js/sidebar.js"></script>
<script src="./js/text-direction-switch.js"></script> <script src="/js/text-direction-switch.js"></script>
<script src="./js/anchor-fix.js"></script> <script src="/js/anchor-fix.js"></script>
</body> </body>
</html> </html>

View File

@@ -22,7 +22,7 @@ if (basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
<div class="my-s border r-l bkgd-dark grid d-inline-block"> <div class="my-s border r-l bkgd-dark grid d-inline-block">
<div class="bb"> <div class="bb">
<img src="./img/maki-03.jpg" alt="Hungry Kitty Cat" class="r-r p-s px-l" height="128px"> <img src="/img/maki-03.jpg" alt="Hungry Kitty Cat" class="r-r p-s px-l" height="128px">
</div> </div>
<div class="bkgd-gray t-center"> <div class="bkgd-gray t-center">
<p>Hungry Cat</p> <p>Hungry Cat</p>

View File

@@ -7,7 +7,6 @@ if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
global $root_path; global $root_path;
?> ?>
<a id="intro"></a>
<div class="p-xs b r-s bkgd-grid"> <div class="p-xs b r-s bkgd-grid">
<h2 class="t-w-500 t-size-14">Introduction</h2> <h2 class="t-w-500 t-size-14">Introduction</h2>
</div> </div>
@@ -67,7 +66,7 @@ global $root_path;
<tr> <tr>
<td>NibbleCSS</td> <td>NibbleCSS</td>
<td> <td>
<a href="./css/nibblepoker.min.css" <a href="/css/nibblepoker.min.css"
title="Download the minified full stylesheet" title="Download the minified full stylesheet"
class="a-hidden" class="a-hidden"
download> download>
@@ -79,7 +78,7 @@ global $root_path;
</a> </a>
</td> </td>
<td> <td>
<a href="./css/nibblepoker.css" <a href="/css/nibblepoker.css"
title="Download the full stylesheet" title="Download the full stylesheet"
class="a-hidden" class="a-hidden"
download> download>
@@ -94,7 +93,7 @@ global $root_path;
<tr> <tr>
<td>Debugger</td> <td>Debugger</td>
<td> <td>
<a href="./css/debugger.min.css" <a href="/css/debugger.min.css"
title="Download the minified debugging stylesheet" title="Download the minified debugging stylesheet"
class="a-hidden" class="a-hidden"
download> download>
@@ -106,7 +105,7 @@ global $root_path;
</a> </a>
</td> </td>
<td> <td>
<a href="./css/debugger.css" <a href="/css/debugger.css"
title="Download the debugging stylesheet" title="Download the debugging stylesheet"
class="a-hidden" class="a-hidden"
download> download>

View File

@@ -8,9 +8,9 @@ if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
<nav id="sidebar" class="sidebar"> <nav id="sidebar" class="sidebar">
<div class="p-m pt-l"> <div class="p-m pt-l">
<a href="#intro" class="no-select"> <a href="/" class="no-select">
<img class="logo-sidebar-v2" <img class="logo-sidebar-v2"
src="./img/logo-large-fluent-unshaded.svg" src="/img/logo-large-fluent-unshaded.svg"
alt="Website's logo" alt="Website's logo"
draggable="false"> draggable="false">
</a> </a>

View File

@@ -2,11 +2,9 @@
* ----------------------------------------------------------------------------- * -----------------------------------------------------------------------------
* NibblePoker CSS Theme * NibblePoker CSS Theme
* ----------------------------------------------------------------------------- * -----------------------------------------------------------------------------
* Author: Herwin Bozet (@NibblePoker) * Author: Herwin Bozet
* License: CC0 1.0 (Public Domain) * License: CC0 1.0 (Public Domain)
* Sources: * Source: ???
* - https://github.com/aziascreations/CSS-NibblePoker/
* - https://git.nibblepoker.lu/aziascreations/CSS-NibblePoker
* ----------------------------------------------------------------------------- * -----------------------------------------------------------------------------
*/ */