Skip to content

Commit 53ff35c

Browse files
author
ubuntu
committed
first commit
0 parents  commit 53ff35c

File tree

97 files changed

+23702
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+23702
-0
lines changed

.dockerignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.git/
2+
.github/
3+
build/
4+
.editorconfig
5+
.gitattributes
6+
.gitignore
7+
CHANGELOG.md
8+
CODE_OF_CONDUCT.md
9+
deploy.sh
10+
font-selection.json
11+
README.md
12+
Vagrantfile

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# Top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
indent_style = space
11+
indent_size = 2
12+
trim_trailing_whitespace = true
13+
14+
[*.rb]
15+
charset = utf-8
16+
17+
[*.md]
18+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
source/javascripts/lib/* linguist-vendored

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Report a Bug
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Bug Description**
11+
A clear and concise description of what the bug is and how to reproduce it.
12+
13+
**Screenshots**
14+
If applicable, add screenshots to help explain your problem.
15+
16+
**Browser (please complete the following information):**
17+
- OS: [e.g. iOS]
18+
- Browser [e.g. chrome, safari]
19+
- Version [e.g. 22]
20+
21+
**Last upstream Slate commit (run `git log --author="\(Robert Lord\)\|\(Matthew Peveler\)\|\(Mike Ralphson\)" | head -n 1`):**
22+
Put the commit hash here

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Questions, Ideas, Discussions
4+
url: https://github.com/slatedocs/slate/discussions
5+
about: Ask and answer questions, and propose new features.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<!--
2+
⚠️ 🚨 ⚠️ STOP AND READ THIS ⚠️ 🚨 ⚠️
3+
4+
👆👆 see that 'base fork' dropdown above? You should change it! The default value of "slatedocs/slate" submits your change to ALL USERS OF SLATE, not just your company. This is PROBABLY NOT WHAT YOU WANT.
5+
-->

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: bundler
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
target-branch: dev
9+
versioning-strategy: increase-if-necessary

.github/workflows/build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ '*' ]
6+
pull_request:
7+
branches: [ '*' ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
ruby-version: [2.6, 2.7, '3.0', 3.1]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up Ruby
20+
uses: ruby/setup-ruby@v1
21+
with:
22+
ruby-version: ${{ matrix.ruby-version }}
23+
24+
- uses: actions/cache@v2
25+
with:
26+
path: vendor/bundle
27+
key: gems-${{ runner.os }}-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
28+
restore-keys: |
29+
gems-${{ runner.os }}-${{ matrix.ruby-version }}-
30+
gems-${{ runner.os }}-
31+
32+
# necessary to get ruby 2.3 to work nicely with bundler vendor/bundle cache
33+
# can remove once ruby 2.3 is no longer supported
34+
- run: gem update --system
35+
36+
- run: bundle config set deployment 'true'
37+
- name: bundle install
38+
run: |
39+
bundle config path vendor/bundle
40+
bundle install --jobs 4 --retry 3
41+
42+
- run: bundle exec middleman build

.github/workflows/deploy.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: [ 'main' ]
6+
7+
jobs:
8+
deploy:
9+
permissions:
10+
contents: write
11+
12+
runs-on: ubuntu-latest
13+
env:
14+
ruby-version: 2.6
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Ruby
19+
uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: ${{ env.ruby-version }}
22+
23+
- uses: actions/cache@v2
24+
with:
25+
path: vendor/bundle
26+
key: gems-${{ runner.os }}-${{ env.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
27+
restore-keys: |
28+
gems-${{ runner.os }}-${{ env.ruby-version }}-
29+
gems-${{ runner.os }}-
30+
31+
- run: bundle config set deployment 'true'
32+
- name: bundle install
33+
run: |
34+
bundle config path vendor/bundle
35+
bundle install --jobs 4 --retry 3
36+
37+
- run: bundle exec middleman build
38+
39+
- name: Deploy
40+
uses: peaceiris/actions-gh-pages@v3
41+
with:
42+
github_token: ${{ secrets.GITHUB_TOKEN }}
43+
publish_dir: ./build
44+
keep_files: true

.github/workflows/dev_deploy.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: Dev Deploy
2+
3+
on:
4+
push:
5+
branches: [ 'dev' ]
6+
7+
jobs:
8+
push_to_registry:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Check out the repo
13+
uses: actions/checkout@v2
14+
15+
- name: Set up QEMU
16+
uses: docker/setup-qemu-action@v1
17+
with:
18+
platforms: all
19+
20+
- name: Docker meta
21+
id: meta
22+
uses: docker/metadata-action@v3
23+
with:
24+
images: |
25+
slatedocs/slate
26+
tags: |
27+
type=ref,event=branch
28+
29+
- name: Set up Docker Buildx
30+
id: buildx
31+
uses: docker/setup-buildx-action@v1
32+
33+
- name: Login to DockerHub
34+
uses: docker/login-action@v1
35+
with:
36+
username: ${{ secrets.DOCKER_USERNAME }}
37+
password: ${{ secrets.DOCKER_ACCESS_KEY }}
38+
39+
- name: Push to Docker Hub
40+
uses: docker/build-push-action@v2
41+
with:
42+
builder: ${{ steps.buildx.outputs.name }}
43+
context: .
44+
file: ./Dockerfile
45+
platforms: linux/amd64,linux/arm64,linux/ppc64le
46+
push: true
47+
tags: ${{ steps.meta.outputs.tags }}
48+
labels: ${{ steps.meta.outputs.labels }}
49+
50+
deploy_gh:
51+
permissions:
52+
contents: write
53+
54+
runs-on: ubuntu-latest
55+
env:
56+
ruby-version: 2.6
57+
58+
steps:
59+
- uses: actions/checkout@v2
60+
- name: Set up Ruby
61+
uses: ruby/setup-ruby@v1
62+
with:
63+
ruby-version: ${{ env.ruby-version }}
64+
65+
- uses: actions/cache@v2
66+
with:
67+
path: vendor/bundle
68+
key: gems-${{ runner.os }}-${{ env.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }}
69+
restore-keys: |
70+
gems-${{ runner.os }}-${{ env.ruby-version }}-
71+
gems-${{ runner.os }}-
72+
- run: bundle config set deployment 'true'
73+
- name: bundle install
74+
run: |
75+
bundle config path vendor/bundle
76+
bundle install --jobs 4 --retry 3
77+
- run: bundle exec middleman build
78+
79+
- name: Deploy
80+
uses: peaceiris/[email protected]
81+
with:
82+
github_token: ${{ secrets.GITHUB_TOKEN }}
83+
destination_dir: dev
84+
publish_dir: ./build
85+
keep_files: true

0 commit comments

Comments
 (0)