8000 Migrate site to Zola (fixes #7) (#42) · CleanCut/rust-gamedev.github.io@fc2aa61 · GitHub
[go: up one dir, main page]

Skip to content

Commit fc2aa61

Browse files
17cupsofcoffeeozkriff
authored andcommitted
Migrate site to Zola (fixes rust-gamedev#7) (rust-gamedev#42)
* Migrate site to Zola * Update README to match new folder structure * Remove old asset * Handle the post/page distinction in a smarter way * Slight phrasing tweak * Add link tags for parity with original site
1 parent d0b8fc2 commit fc2aa61
  • pf-sandbox.jpg
  • newsletter-004
  • sass
  • script
  • static
  • templates
  • Some content is hidden

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

    136 files changed

    +520
    -471
    lines changed

    .github/workflows/ci.yml

    Lines changed: 24 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -0,0 +1,24 @@
    1+
    name: Zola
    2+
    3+
    on: [push, pull_request]
    4+
    5+
    jobs:
    6+
    zola:
    7+
    runs-on: ubuntu-latest
    8+
    env:
    9+
    BASE_URL: https://github.com/getzola/zola/releases/download
    10+
    VERS: v0.9.0
    11+
    ARCH: x86_64-unknown-linux-gnu
    12+
    # https://github.com/marketplace/actions/github-pages#warning-limitation
    13+
    GITHUB_PAT: ${{ secrets.GITHUB_PAT }}
    14+
    steps:
    15+
    - uses: actions/checkout@v1
    16+
    - name: Install Zola
    17+
    run: curl -L ${BASE_URL}/${VERS}/zola-${VERS}-${ARCH}.tar.gz | tar -xz
    18+
    - run: ./zola --version
    19+
    - run: ./zola build
    20+
    - name: Deploy
    21+
    if: github.ref == 'refs/heads/master'
    22+
    uses: crazy-max/ghaction-github-pages@v1
    23+
    with:
    24+
    build_dir: public

    .gitignore

    Lines changed: 1 addition & 5 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1,5 +1 @@
    1-
    .bundle
    2-
    .sass-cache
    3-
    Gemfile.lock
    4-
    _site
    5-
    *.gem
    1+
    public/

    .travis.yml

    Lines changed: 0 additions & 15 deletions
    This file was deleted.

    404.html

    Lines changed: 0 additions & 24 deletions
    This file was deleted.

    Gemfile

    Lines changed: 0 additions & 2 deletions
    This file was deleted.

    README.md

    Lines changed: 4 additions & 2 deletions
    Original file line numberDiff line numberDiff line change
    @@ -4,14 +4,16 @@
    44

    55
    * At the beginning of the month, a draft of the newsletter is created
    66
    from a [template](./newsletter-template.md).
    7+
    * This should be called `index.md`, and placed in a folder named
    8+
    `/posts/newsletter-xxx` (where `xxx` is the issue number).
    79
    * During the month PRs with the month's news, meeting notes, etc
    810
    are reviewed and merged into the draft.
    9-
    * All images are supposed to be placed into `assets/newsletter-{index}` dir.
    11+
    * All images should be placed in the same folder as the post.
    1012
    * Check the comments in the draft file.
    1113
    * At the end of the month, the draft is reviewed as a whole
    1214
    and polished if needed.
    1315
    * On the first working day of the next month, the final PR
    14-
    (that renames and moves the draft file into the `_posts` dir) is sent.
    16+
    (that removes `draft = true` from the post's front matter and adds the date) is sent.
    1517
    * The link to the newsletter is shared on social networks, etc.
    1618
    * A small PR that adds links to Reddit, Twitter, etc discussions
    1719
    (see the comment at the bottom of the draft) is made.

    _config.yml

    Lines changed: 0 additions & 51 deletions
    This file was deleted.

    _includes/footer.html

    Lines changed: 0 additions & 31 deletions
    This file was deleted.

    _includes/google-analytics.html

    Lines changed: 0 additions & 9 deletions
    This file was deleted.

    _includes/head.html

    Lines changed: 0 additions & 11 deletions
    This file was deleted.

    _includes/header.html

    Lines changed: 0 additions & 34 deletions
    This file was deleted.

    _includes/social.html

    Lines changed: 0 additions & 19 deletions
    This file was deleted.

    _layouts/default.html

    Lines changed: 0 additions & 18 deletions
    This file was deleted.

    _layouts/home.html

    Lines changed: 0 additions & 57 deletions
    This file was deleted.

    _layouts/page.html

    Lines changed: 0 additions & 14 deletions
    This file was deleted.

    _layouts/post.html

    Lines changed: 0 additions & 27 deletions
    This file was deleted.

    config.toml

    Lines changed: 17 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -0,0 +1,17 @@
    1+
    title = "Rust Game Development Working Group"
    2+
    description = "Stay up to date with the progress and recent developments in the Rust Game Development Working Group."
    3+
    base_url = "https://rust-gamedev.github.io/"
    4+
    default_language = "en"
    5+
    compile_sass = true
    6+
    highlight_code = true
    7+
    generate_rss = true
    8+
    9+
    [extra]
    10+
    date_format = "%F"
    11+
    show_summaries = false
    12+
    13+
    [extra.social_links]
    14+
    twitter = "rust_gamedev"
    15+
    github = "rust-gamedev"
    16+
    discord = "j6QJsMd"
    17+
    rss = "RSS"

    0 commit comments

    Comments
     (0)
    0