Skip to content

Commit

Permalink
Use ronn-ng for builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ibokuri committed Mar 11, 2024
1 parent 1ef2411 commit 03a4f79
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 224 deletions.
49 changes: 35 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,49 @@ on:

jobs:
build:
runs-on: macos-14
runs-on: ubuntu-latest

concurrency: ci-${{ github.ref }}

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Update Homebrew
- uses: actions/checkout@v4

- name: Clone ronn-ng repository
uses: GuillaumeFalourd/[email protected]
with:
depth: 1
branch: 'main'
owner: 'ibokuri'
repository: 'ronn-ng'

- name: Install Ruby and Bundler; Install ronn-ng dependencies
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
working-directory: ronn-ng/
bundler-cache: true

- name: Make site directory
run: mkdir public

- name: Build site files
run: |
brew update
- name: Install Packages
cd ronn-ng/
bundle exec bin/ronn \
--html \
--output-dir="../public/" \
--manual="General Commands Manual" \
--section=1 \
--name="danh.computer" \
../md/*.md
- name: Clean up
run: |
brew install coreutils groff gnu-sed scdoc
- name: Build site
run: make build
cd -
rm -rf ronn-ng/
- name: Add CNAME file
run: |
echo "danh.computer" > public/CNAME
run: echo "danh.computer" > public/CNAME

- name: Deploy site
uses: s0/git-publish-subdir-action@develop
Expand Down
84 changes: 0 additions & 84 deletions Makefile

This file was deleted.

48 changes: 0 additions & 48 deletions css/style.css

This file was deleted.

56 changes: 0 additions & 56 deletions html/index.html

This file was deleted.

22 changes: 0 additions & 22 deletions html/template.html

This file was deleted.

32 changes: 32 additions & 0 deletions md/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
personal website
================

## SYNOPSIS

`danh` [_OPTIONS_]
<br>
`jason` [_OPTIONS_]

## OPTIONS

* `-h`, `--help`:
Prints a short help message and exits.

* `-v`, `--version`:
Prints version information and exits.

* `--email`=<u>ADDRESS</u>:
Specifies the email address of the site owner. The default is
[[email protected]](mailto:[email protected]).

* `--github`=<u>USERNAME</u>:
Specifies the GitHub username of the site owner. The default is
[ibokuri](https://github.com).

* `--employer`=<u>COMPANY</u>:
Specifies the current employer of the site owner. The default is
[DigitalOcean](https://digitalocean.com).

## SEE ALSO

2024-03-10&nbsp;&nbsp;[Test Blog Post](https://danh.computer/test)

0 comments on commit 03a4f79

Please sign in to comment.