Skip to content

Commit

Permalink
[Wiki] GitHub pages (#129)
Browse files Browse the repository at this point in the history
* main page and some basic structure

* faq

* Create jekyll-gh-pages.yml

* Update jekyll-gh-pages.yml

* add url to config

* ATM9, blocks and stargate variants

* color tweaks

* stargate variants

* remove docs folder & changes

* faq & discord link from variable

* Table of contents

* troubleshooting

* what is stargate

* Survival Guide - finding a gate

* Survival Guide - dialing

* img

* block images

* Survival Guide

* temporary deployment

* fix links for subfolder on github pages

* survival guide correction

* variant and upgrade crystals

* structure

* stargate interface

* another computercraft docs

* computercraft interface functions

* computercraft interface functions usage

* computercraft stargate_interface functions usage

* update interface modes description (rotation for universe stargate)

* add missing image

* computercraft stargate_interface milky way methods

* computercraft events

* computercraft events fix heading

* copy everything from the old wiki

* comments

* hide empty pages, move stargate_network out of mechanics folder, fix links to the old wiki
  • Loading branch information
lukaskabc authored Sep 7, 2024
1 parent a594465 commit 19c3181
Show file tree
Hide file tree
Showing 150 changed files with 5,585 additions and 129 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["documentation"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
# Outputs to the './_site' directory by default
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
74 changes: 43 additions & 31 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,31 +1,43 @@
# eclipse
bin
*.launch
.settings
.metadata
.classpath
.project

# idea
out
*.ipr
*.iws
*.iml
.idea

# vscode
.vscode

# gradle
build
.gradle

# other
eclipse
run

# Files from Forge MDK
forge*changelog.txt

# Log files
logs
# eclipse
bin
*.launch
.settings
.metadata
.classpath
.project

# idea
out
*.ipr
*.iws
*.iml
.idea

# vscode
.vscode

# gradle
build
.gradle

# other
eclipse
run

# Files from Forge MDK
forge*changelog.txt

# Log files
logs


# Ignore metadata generated by Jekyll
_site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata

# Ignore folders generated by Bundler
Gemfile.lock
.bundle/
vendor/
22 changes: 22 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
source "https://rubygems.org"

gem "webrick", "~> 1.8"
gem "github-pages", group: :jekyll_plugins

# theme
# https://github.com/just-the-docs/just-the-docs
gem "just-the-docs", "~> 0.8.2"

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", ">= 1", "< 3"
gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]

# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
# do not have a Java counterpart.
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
Loading

0 comments on commit 19c3181

Please sign in to comment.