Skip to content

Commit

Permalink
Merge pull request #1
Browse files Browse the repository at this point in the history
initial check in
  • Loading branch information
eddiecarpenter authored Jun 22, 2024
2 parents 0e5275a + bb0ae27 commit 7ece0e8
Show file tree
Hide file tree
Showing 182 changed files with 23,519 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
14 changes: 14 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "standard",
"rules": {
"arrow-parens": ["error", "always"],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline"
}],
"max-len": [1, 120, 2],
"spaced-comment": "off"
}
}
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: daily
labels:
- infra
70 changes: 70 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
# GitHub Actions workflow for commits pushed to the antora theme repo

name: CI
on:
push:
branches: [main]
pull_request:

jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [18.16.0]
steps:
- name: Clone the repo
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Run with CI
run: npm ci

# Build the Antora UI bundle for release.
- name: Build bundle
id: build_bundle
run: gulp bundle

# Build the Antora preview (ends up in ./public)
- name: Build preview
# Only support previews on PRs
if: "github.event_name == 'pull_request'"
id: build_preview
run: gulp preview:build

- name: Store PR id
if: "github.event_name == 'pull_request'"
run: echo ${{ github.event.number }} > ./public/pr-id.txt

- name: Publishing directory for PR preview
if: "github.event_name == 'pull_request'"
uses: actions/upload-artifact@v4
with:
name: site
path: ./public
retention-days: 3

- name: Bump version and push tag
id: tag
uses: anothrNick/[email protected]
# Only try and deploy on merged code
if: "github.repository == 'eddiecarpenter/antora-ui-go-docs' && github.ref_name == 'main' && (github.event_name == 'push' || github.event_name == 'schedule')"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true

- name: Publish bundle
uses: ncipollo/release-action@v1
# Only try and deploy on merged code, ie if we just made a tag
if: "steps.tag.outputs.new_tag"
with:
artifacts: "./build/ui-bundle.zip"
omitBody: true
generateReleaseNotes: true
makeLatest: true
tag: "${{ steps.tag.outputs.new_tag }}"
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/build/
/node_modules/
/public/

# Eclipse
.project
.settings/
4 changes: 4 additions & 0 deletions .gulp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"description": "Build tasks for the Antora UI project",
"flags.tasksDepth": 1
}
10 changes: 10 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Loading

0 comments on commit 7ece0e8

Please sign in to comment.