-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
- Loading branch information
1 parent
0d51772
commit 4a34b60
Showing
79 changed files
with
11,702 additions
and
43 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
/build | ||
/node_modules | ||
*.html |
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,3 @@ | ||
# We could switch to /_/* and use an indefinite age if we append a cache buster to all asset URLs | ||
/_/font/* | ||
Cache-Control: public,max-age=604800 |
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,27 @@ | ||
site: | ||
title: Red Hat OpenShift Pipelines previews | ||
url: https://docs.openshift-pipelines.org | ||
start_page: docs::index.adoc | ||
urls: | ||
latest_version_segment: latest | ||
content: | ||
sources: | ||
- url: . | ||
edit_url: ~ | ||
branches: HEAD | ||
ui: | ||
bundle: | ||
url: ./ui-bundle.zip | ||
supplemental_files: ./supplemental_ui | ||
|
||
asciidoc: | ||
extensions: | ||
- asciidoctor-emoji | ||
- ./lib/tabs | ||
attributes: | ||
hide-uri-scheme: '' | ||
product-name: 'OpenShift Pipelines' | ||
short-name: 'Pipelines' | ||
pipelines: 'OpenShift Pipelines' | ||
toc: preamble | ||
toc-title: ~ |
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,13 @@ | ||
name: docs | ||
title: Documentation | ||
version: main | ||
nav: | ||
- modules/ROOT/nav.adoc | ||
start_ROOT: 'ROOT:index.adoc' | ||
asciidoc: | ||
attributes: | ||
product-title: OpenShift | ||
pipelinesoperatorname: OpenShift Pipelines Operator | ||
pipelinesproductname: OpenShift Pipelines | ||
serverlessoperatorname: OpenShift Pipelines Operator | ||
product_name: OpenShift Pipelines |
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,37 @@ | ||
const BlockCopyToClipboardMacro = (() => { | ||
const $context = Symbol("context"); | ||
const superclass = Opal.module(null, "Asciidoctor").Extensions | ||
.BlockMacroProcessor; | ||
const scope = Opal.klass( | ||
Opal.module(null, "Antora"), | ||
superclass, | ||
"BlockCopyToClipboardMacro", | ||
function() {} | ||
); | ||
|
||
Opal.defn(scope, "$initialize", function initialize(name, config, context) { | ||
Opal.send( | ||
this, | ||
Opal.find_super_dispatcher(this, "initialize", initialize), | ||
[name, config] | ||
); | ||
this[$context] = context; | ||
}); | ||
|
||
Opal.defn(scope, "$process", function(parent, target, attrs) { | ||
const t = target.startsWith(":") ? target.substr(1) : target; | ||
//console.log("target:", t); | ||
const createHtmlFragment = html => this.createBlock(parent, "pass", html); | ||
const html = `<button class="copybtn" title="Copy to clipboard" data-clipboard-target="#${t}"><i class="fa fa-copy"></i></button><br/>`; | ||
parent.blocks.push(createHtmlFragment(html)); | ||
}); | ||
|
||
return scope; | ||
})(); | ||
|
||
module.exports.register = (registry, context) => { | ||
registry.blockMacro( | ||
BlockCopyToClipboardMacro.$new("copyToClipboard", Opal.hash(), context) | ||
); | ||
}; | ||
|
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,76 @@ | ||
/** | ||
* Extends the AsciiDoc syntax to support a tabset element. The tabset is | ||
* created from a dlist that is enclosed in an example block marked with the | ||
* tabs style. | ||
* | ||
* Usage: | ||
* | ||
* [tabs] | ||
* ==== | ||
* Tab A:: | ||
* + | ||
* -- | ||
* Contents of tab A. | ||
* -- | ||
* Tab B:: | ||
* + | ||
* -- | ||
* Contents of tab B. | ||
* -- | ||
* ==== | ||
* | ||
* To use this extension, register the tabs.js file with Antora (i.e., | ||
* list it as an AsciiDoc extension in the Antora playbook file), combine | ||
* styles.css with the styles for the site, and combine behavior.js with the | ||
* JavaScript loaded by the page. | ||
* | ||
* @author Dan Allen <dan@opendevise.com> | ||
*/ | ||
const IdSeparatorChar = '-' | ||
const InvalidIdCharsRx = /[^a-zA-Z0-9_]/g | ||
const List = Opal.const_get_local(Opal.module(null, 'Asciidoctor'), 'List') | ||
const ListItem = Opal.const_get_local(Opal.module(null, 'Asciidoctor'), 'ListItem') | ||
|
||
const generateId = (str, idx) => `tabset${idx}_${str.toLowerCase().replace(InvalidIdCharsRx, IdSeparatorChar)}` | ||
|
||
function tabsBlock () { | ||
this.onContext('example') | ||
this.process((parent, reader, attrs) => { | ||
const createHtmlFragment = (html) => this.createBlock(parent, 'pass', html) | ||
const tabsetIdx = parent.getDocument().counter('idx-tabset') | ||
const nodes = [] | ||
nodes.push(createHtmlFragment('<div class="tabset is-loading">')) | ||
const container = this.parseContent(this.createBlock(parent, 'open'), reader) | ||
const sourceTabs = container.getBlocks()[0] | ||
if (!(sourceTabs && sourceTabs.getContext() === 'dlist' && sourceTabs.getItems().length)) return | ||
const tabs = List.$new(parent, 'ulist') | ||
tabs.addRole('tabs') | ||
const panes = {} | ||
sourceTabs.getItems().forEach(([[title], details]) => { | ||
const tab = ListItem.$new(tabs) | ||
tabs.$append(tab) | ||
const id = generateId(title.getText(), tabsetIdx) | ||
tab.text = `[[${id}]]${title.text}` | ||
let blocks = details.getBlocks() | ||
const numBlocks = blocks.length | ||
if (numBlocks) { | ||
if (blocks[0].context === 'open' && numBlocks === 1) blocks = blocks[0].getBlocks() | ||
panes[id] = blocks.map((block) => (block.parent = parent) && block) | ||
} | ||
}) | ||
nodes.push(tabs) | ||
nodes.push(createHtmlFragment('<div class="content">')) | ||
Object.entries(panes).forEach(([id, blocks]) => { | ||
nodes.push(createHtmlFragment(`<div class="tab-pane" aria-labelledby="${id}">`)) | ||
nodes.push(...blocks) | ||
nodes.push(createHtmlFragment('</div>')) | ||
}) | ||
nodes.push(createHtmlFragment('</div>')) | ||
nodes.push(createHtmlFragment('</div>')) | ||
parent.blocks.push(...nodes) | ||
}) | ||
} | ||
|
||
module.exports.register = (registry, context) => { | ||
registry.block('tabs', tabsBlock) | ||
} |
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,11 @@ | ||
* xref:index.adoc[Overview] | ||
* Pipelines | ||
** xref:pipeline:auth.adoc[Authentication practices with Tekton] | ||
** xref:pipeline:unprivileged-builds.adoc[Build container image with buildah, unprivileged] | ||
** xref:pipeline:cache-in-tekton.adoc[Caches "support" in tekton pipelines] | ||
* Operator | ||
** xref:operator:troubleshooting.adoc[Troubleshooting] | ||
* Results | ||
** xref:results:query-using-opc.adoc[Query Results Using OPC CLI] | ||
* Chains | ||
** xref:chains:hashicorp-integration-with-chains.adoc[Hashicorp Integration with Tekton Chains] |
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,3 @@ | ||
:moduledir: .. | ||
:branch: main | ||
:github-repo: https://github.com/openshift-pipelines/docs.git |
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,7 @@ | ||
= Overview | ||
|
||
IMPORTANT: This is an __nofficial__ documentation for OpenShift Pipelines maintained by the engineers working on the project. Please refer to the https://docs.openshift.com[Official documentation] for supported documentation. | ||
|
||
== Pipeline as code https://pipelinesascode.com/[➡] | ||
|
||
The upstream documentation for Pipeline as code is very good, so let's just go there: https://pipelinesascode.com/[pipelinesascode.com] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.