Skip to content

Commit

Permalink
chore: add scaffold for antora-based catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro committed Feb 10, 2021
1 parent 3b70f6f commit 15165a7
Show file tree
Hide file tree
Showing 134 changed files with 29,936 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
/docs/build
16 changes: 16 additions & 0 deletions docs/antora-playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
site:
title: Kamelet Catalog
url: https://camel.apache.org/
start_page: camel-kamelets::index.adoc
content:
sources:
- url: ../
branches: HEAD
start_path: docs
asciidoc:
extensions:
- "@djencks/asciidoctor-antora-indexer"
ui:
bundle:
url: ./kamelet-catalog-ui/build/ui-bundle.zip

5 changes: 5 additions & 0 deletions docs/antora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: camel-kamelets
title: Kamelet Catalog
version: latest
nav:
- modules/ROOT/nav.adoc
9 changes: 9 additions & 0 deletions docs/kamelet-catalog-ui/.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 docs/kamelet-catalog-ui/.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"
}
}
3 changes: 3 additions & 0 deletions docs/kamelet-catalog-ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/build/
/node_modules/
/public/
55 changes: 55 additions & 0 deletions docs/kamelet-catalog-ui/.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
image: node:10.14.2-stretch
stages: [setup, verify, deploy]
install:
stage: setup
cache:
paths:
- .cache/npm
script:
- &npm_install
npm install --quiet --no-progress --cache=.cache/npm
lint:
stage: verify
cache: &pull_cache
policy: pull
paths:
- .cache/npm
script:
- *npm_install
- node_modules/.bin/gulp lint
bundle-stable:
stage: deploy
only:
- master@antora/antora-ui-default
cache: *pull_cache
script:
- *npm_install
- node_modules/.bin/gulp bundle
artifacts:
paths:
- build/ui-bundle.zip
bundle-dev:
stage: deploy
except:
- master
cache: *pull_cache
script:
- *npm_install
- node_modules/.bin/gulp bundle
artifacts:
expire_in: 1 day # unless marked as keep from job page
paths:
- build/ui-bundle.zip
pages:
stage: deploy
only:
- master@antora/antora-ui-default
cache: *pull_cache
script:
- *npm_install
- node_modules/.bin/gulp preview:build
# FIXME figure out a way to avoid copying these files to preview site
- rm -rf public/_/{helpers,layouts,partials}
artifacts:
paths:
- public
4 changes: 4 additions & 0 deletions docs/kamelet-catalog-ui/.gulp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"description": "Build tasks for the Antora default UI project",
"flags.tasksDepth": 1
}
1 change: 1 addition & 0 deletions docs/kamelet-catalog-ui/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
7 changes: 7 additions & 0 deletions docs/kamelet-catalog-ui/.stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "stylelint-config-standard",
"rules": {
"comment-empty-line-before": null,
"no-descending-specificity": null,
}
}
Loading

0 comments on commit 15165a7

Please sign in to comment.