-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from evan-buss/development
release: v4.5.0
- Loading branch information
Showing
36 changed files
with
636 additions
and
155 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,22 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.217.4/containers/ubuntu | ||
{ | ||
"name": "Ubuntu", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"args": { | ||
"VARIANT": "jammy" | ||
} | ||
}, | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"go.toolsManagement.checkForUpdates": "local", | ||
"go.addTags": { | ||
"tags": "json", | ||
"options": "json=omitempty", | ||
"promptForTags": false, | ||
"transform": "snakecase", | ||
"template": "" | ||
}, | ||
"go.useLanguageServer": true, | ||
"go.gopath": "/go", | ||
"go.goroot": "/usr/local/go" | ||
}, | ||
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"], | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"golang.Go", | ||
"eamodio.gitlens", | ||
"bradlc.vscode-tailwindcss", | ||
"esbenp.prettier-vscode", | ||
"GitHub.copilot" | ||
], | ||
"image": "mcr.microsoft.com/devcontainers/base:0-jammy", | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "uname -a", | ||
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "vscode", | ||
"postCreateCommand": "bash .devcontainer/setup.sh", | ||
|
||
// Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "root", | ||
"features": { | ||
"docker-in-docker": "latest", | ||
"git": "latest", | ||
"sshd": "latest", | ||
"node": "lts", | ||
"golang": "latest" | ||
"ghcr.io/devcontainers/features/go:1": {}, | ||
"ghcr.io/devcontainers/features/node:1": {} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": ["golang.go", "heybourn.headwind", "esbenp.prettier-vscode", "bradlc.vscode-tailwindcss", "ms-vscode.makefile-tools", "redhat.vscode-yaml"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
go install github.com/go-task/task/v3/cmd/task@latest | ||
|
||
sudo apt update | ||
sudo apt install -y python3.10-venv | ||
|
||
# Mkdocs Social Cards Native Dependencies | ||
sudo apt install -y libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Simple workflow for deploying static content to GitHub Pages | ||
name: Deploy static content to Pages | ||
|
||
on: | ||
workflow_dispatch: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
paths: | ||
- "docs/**" | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: docs | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow one concurrent deployment | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# Single deploy job since we're just deploying | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Build MkDocs Site | ||
run: | | ||
pip install -r requirements.txt | ||
mkdocs build | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: "docs/site/" | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,9 @@ openbooks | |
!openbooks/ | ||
*.DS_Store | ||
**/dist | ||
.task/ | ||
docs/venv/ | ||
docs/site/ | ||
# end persist | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"yaml.schemas": { | ||
"https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# https://taskfile.dev | ||
|
||
version: "3" | ||
|
||
tasks: | ||
go-update: | ||
desc: Update Golang dependencies. | ||
cmds: | ||
- go get -u ./.. | ||
- go mod tidy | ||
|
||
npm-update: | ||
desc: Update Node.JS client side dependencies. | ||
dir: server/app | ||
cmds: | ||
- npx npm-check-updates -i | ||
interactive: true | ||
|
||
npm-install: | ||
desc: Install Node.JS client side dependencies. | ||
dir: server/app | ||
cmds: | ||
- npm install | ||
sources: | ||
- package.json | ||
- package-lock.json | ||
|
||
mock: | ||
desc: Start Mock Server for Development | ||
dir: cmd/mock_server | ||
cmds: | ||
- go run . | ||
|
||
cli: | ||
desc: Run OpenBooks in CLI Mode. | ||
dir: cmd/openbooks | ||
cmds: | ||
- go build | ||
- ./openbooks cli --tls=false --server localhost:6667 | ||
|
||
server: | ||
desc: Run OpenBooks in Server Mode. | ||
dir: cmd/openbooks | ||
cmds: | ||
- go build | ||
- ./openbooks server --tls=false --server localhost:6667 | ||
|
||
client: | ||
desc: Run OpenBooks React Client Application in Development Mode. | ||
dir: server/app | ||
cmds: | ||
- npm run dev | ||
|
||
desktop: | ||
desc: Run OpenBooks in the experimental desktop mode with a WebView GUI. | ||
dir: cmd/openbooks | ||
cmds: | ||
- go run -tags webview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# https://taskfile.dev | ||
|
||
version: "3" | ||
|
||
tasks: | ||
init: | ||
dir: docs | ||
cmds: | ||
- python3 -m venv venv | ||
- venv/bin/python3 -m pip install -r requirements.txt | ||
|
||
serve: | ||
dir: docs | ||
cmds: | ||
- venv/bin/mkdocs serve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# https://taskfile.dev | ||
|
||
version: "3" | ||
|
||
tasks: | ||
npm-build: | ||
internal: true | ||
dir: server/app | ||
cmds: | ||
- npm ci | ||
- npm run build | ||
|
||
build: | ||
desc: Build OpenBooks binaries for all supported platforms. | ||
deps: | ||
- npm-build | ||
dir: cmd/openbooks | ||
cmds: | ||
- go get | ||
- env CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ./../../build/openbooks.exe | ||
- env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o ./../../build/openbooks_mac | ||
- env CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o ./../../build/openbooks_mac_arm | ||
- env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./../../build/openbooks_linux | ||
- env CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o ./../../build/openbooks_linux_arm | ||
|
||
build-desktop: | ||
desc: Build OpenBooks in the experimental desktop mode with a WebView GUI. | ||
dir: cmd/openbooks | ||
cmds: | ||
- go build -tags webviews |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# https://taskfile.dev | ||
|
||
version: "3" | ||
|
||
includes: | ||
dev: Taskfile.Development.yaml | ||
docs: Taskfile.Documentation.yaml | ||
release: Taskfile.Release.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.