Skip to content

Commit c6300c9

Browse files
committed
Move repository
0 parents  commit c6300c9

20 files changed

+302
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: github pages
2+
3+
on:
4+
push:
5+
branches:
6+
- source
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
submodules: true # Fetch Hugo themes (true OR recursive)
15+
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
16+
17+
- name: Setup Zola
18+
run: wget -q -O - "https://github.com/getzola/zola/releases/download/v0.11.0/zola-v0.11.0-x86_64-unknown-linux-gnu.tar.gz" | tar xzf -
19+
20+
- name: Build
21+
run: ./zola build
22+
23+
- name: Deploy
24+
uses: peaceiris/actions-gh-pages@v3
25+
with:
26+
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
publish_dir: ./public
28+
publish_branch: master
29+
cname: rust-lang.tw
30+
user_name: "github-actions[bot]"
31+
user_email: "github-actions[bot]@users.noreply.github.com"

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules/
2+
yarn.lock
3+
public/
4+
zola
5+
zola*.tar.gz

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "themes/hallo"]
2+
path = themes/hallo
3+
url = https://github.com/janbaudisch/zola-hallo.git

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# rust-lang.tw
2+
3+
## Local development
4+
5+
### 1. Install [Zola](https://www.getzola.org/)
6+
7+
```
8+
cargo install --git https://github.com/getzola/zola
9+
```
10+
11+
### 2. Launch dev server
12+
13+
```
14+
zola serve
15+
```

config.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# The URL the site will be built for
2+
base_url = "https://rust-lang.tw"
3+
4+
# Whether to automatically compile all Sass files in the sass directory
5+
compile_sass = true
6+
7+
# Whether to do syntax highlighting
8+
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
9+
highlight_code = true
10+
11+
# Whether to build a search index to be used later on by a JavaScript library
12+
build_search_index = false
13+
14+
theme = "hallo"
15+
16+
title = "Rust Taiwan Community"
17+
18+
[extra]
19+
# Put all your custom variables here
20+
author = { name = "Rust Taiwan" }
21+
iam = "Welcome to"
22+
links = [
23+
{ title = "Telegram 群組", url = "https://t.me/rust_tw", icon = "telegram" },
24+
{ title = "Facebook 群組", url = "https://www.facebook.com/groups/857846870916793/", icon = "facebook" },
25+
{ title = "GitHub", url = "https://github.com/rust-tw/", icon = "github" },
26+
{ title = "E-mail", url = "mailto:contact@rust-lang.tw", iconset = "fas", icon = "envelope" },
27+
]

static/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rust-lang.tw

static/android-chrome-192x192.png

13.6 KB
Loading

static/android-chrome-512x512.png

41.7 KB
Loading

static/apple-touch-icon.png

13.2 KB
Loading

static/browserconfig.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<browserconfig>
3+
<msapplication>
4+
<tile>
5+
<square150x150logo src="/mstile-150x150.png"/>
6+
<TileColor>#ffffff</TileColor>
7+
</tile>
8+
</msapplication>
9+
</browserconfig>

0 commit comments

Comments
 (0)