From 779f36f64b2fb24c5262baba62501109fe2ed77a Mon Sep 17 00:00:00 2001 From: kyle-admin Date: Mon, 27 Oct 2025 03:05:52 -0700 Subject: [PATCH] init --- .dockerignore | 0 .gitea/workflows/deploy.yml | 28 ++++++++++++++++++++++++++++ README.md | 5 ++--- root/docs/index.md | 2 ++ root/mkdocs.yml | 28 ++++++++++++++++++++++++++++ root/requirements.txt | 2 ++ start.sh | 12 ++++++++++++ 7 files changed, 74 insertions(+), 3 deletions(-) create mode 100644 .dockerignore create mode 100644 .gitea/workflows/deploy.yml create mode 100644 root/docs/index.md create mode 100644 root/mkdocs.yml create mode 100644 root/requirements.txt create mode 100644 start.sh diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..e69de29 diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..5c01c9b --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,28 @@ +name: Deploy to Cloudflare Pages +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + + - name: Install Wrangler + run: npm install -g wrangler + + - name: Authenticate with Cloudflare + run: wrangler auth login --api-token ${{ secrets.CLOUDFLARE_API_TOKEN }} + + - name: Deploy to Pages + run: wrangler pages deploy dist --project-name test --branch master + # Replace 'dist' with your build output directory (e.g., 'build' for React). + # If building is needed, add a step like: run: npm run build \ No newline at end of file diff --git a/README.md b/README.md index 1a8fd9f..190ba10 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,2 @@ -# sample.shareforge.de - -Sample Service \ No newline at end of file +# Sample Service Template +This is a sample template for the shareforge service that uses auto deployment and api to deploy \ No newline at end of file diff --git a/root/docs/index.md b/root/docs/index.md new file mode 100644 index 0000000..dd70e44 --- /dev/null +++ b/root/docs/index.md @@ -0,0 +1,2 @@ +# This is a sample page +This is sample text learn more about markdown syntax [Here](https://www.markdownguide.org/basic-syntax/) diff --git a/root/mkdocs.yml b/root/mkdocs.yml new file mode 100644 index 0000000..836a732 --- /dev/null +++ b/root/mkdocs.yml @@ -0,0 +1,28 @@ +theme: + name: material + palette: + + # Light mode (optional; can be toggled off if you want dark-only) + - scheme: default + primary: indigo + accent: cyan + toggle: + icon: material/brightness-7 + name: Switch to dark mode + + # Dark mode (default) + - scheme: slate + primary: indigo + accent: cyan + toggle: + icon: material/brightness-4 + name: Switch to light mode + + features: + - content.code.copy + - navigation.instant + - search.suggest + - search.highlight + - navigation.sections + +# At the end we will add the site title when the script runs \ No newline at end of file diff --git a/root/requirements.txt b/root/requirements.txt new file mode 100644 index 0000000..9a8a4ca --- /dev/null +++ b/root/requirements.txt @@ -0,0 +1,2 @@ +mkdocs +mkdocs-material diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..00755ea --- /dev/null +++ b/start.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +echo "" +echo "${BLUE} ____ __. .__ _________ .__ .__ __ "; +echo "${BLUE}| |/ _|___.__.| | ____ / _____/_____ ____ |__| ____ | |___/ |_ "; +echo "${BLUE}| < < | || | _/ __ \\ \\_____ \\\\____ \\_/ __ \\| |/ ___\\| | \\ __\\ " +echo "${BLUE}| | \\ \\___ || |_\\ ___/ / \\ |_> > ___/| / /_/ > Y \\ | " +echo "${BLUE}|____|__ \\/ ____||____/\\___ > /_______ / __/ \\___ >__\\___ /|___| /__| " +echo "${BLUE} \\/\\/ \\/ \\/|__| \\/ /_____/ \\/ " +echo "${GREEN}╔════════════════════════════════════════════════════════════════════════════════╗" +echo "${GREEN}║ 🮲🮳 Shareforge Script By Kyle Speight 2026 Copyright 🮲🮳 ║" +echo "${GREEN}╚════════════════════════════════════════════════════════════════════════════════╝" \ No newline at end of file