Skip to content

Commit 5c9bfbf

Browse files
committed
First commit
0 parents  commit 5c9bfbf

File tree

520 files changed

+36659
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

520 files changed

+36659
-0
lines changed

CODE_OF_CONDUCT.md

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, religion, or sexual identity
10+
and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
- Focusing on what is best not just for us as individuals, but for the
26+
overall community
27+
28+
Examples of unacceptable behavior include:
29+
30+
- The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
- Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
50+
51+
## Scope
52+
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported to the community leaders responsible for enforcement at
63+
konveyor.io.
64+
All complaints will be reviewed and investigated promptly and fairly.
65+
66+
All community leaders are obligated to respect the privacy and security of the
67+
reporter of any incident.
68+
69+
## Enforcement Guidelines
70+
71+
Community leaders will follow these Community Impact Guidelines in determining
72+
the consequences for any action they deem in violation of this Code of Conduct:
73+
74+
### 1. Correction
75+
76+
**Community Impact**: Use of inappropriate language or other behavior deemed
77+
unprofessional or unwelcome in the community.
78+
79+
**Consequence**: A private, written warning from community leaders, providing
80+
clarity around the nature of the violation and an explanation of why the
81+
behavior was inappropriate. A public apology may be requested.
82+
83+
### 2. Warning
84+
85+
**Community Impact**: A violation through a single incident or series
86+
of actions.
87+
88+
**Consequence**: A warning with consequences for continued behavior. No
89+
interaction with the people involved, including unsolicited interaction with
90+
those enforcing the Code of Conduct, for a specified period of time. This
91+
includes avoiding interactions in community spaces as well as external channels
92+
like social media. Violating these terms may lead to a temporary or
93+
permanent ban.
94+
95+
### 3. Temporary Ban
96+
97+
**Community Impact**: A serious violation of community standards, including
98+
sustained inappropriate behavior.
99+
100+
**Consequence**: A temporary ban from any sort of interaction or public
101+
communication with the community for a specified period of time. No public or
102+
private interaction with the people involved, including unsolicited interaction
103+
with those enforcing the Code of Conduct, is allowed during this period.
104+
Violating these terms may lead to a permanent ban.
105+
106+
### 4. Permanent Ban
107+
108+
**Community Impact**: Demonstrating a pattern of violation of community
109+
standards, including sustained inappropriate behavior, harassment of an
110+
individual, or aggression toward or disparagement of classes of individuals.
111+
112+
**Consequence**: A permanent ban from any sort of public interaction within
113+
the community.
114+
115+
## Attribution
116+
117+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118+
version 2.0, available at
119+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120+
121+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122+
enforcement ladder](https://github.com/mozilla/diversity).
123+
124+
[homepage]: https://www.contributor-covenant.org
125+
126+
For answers to common questions about this code of conduct, see the FAQ at
127+
https://www.contributor-covenant.org/faq. Translations are available at
128+
https://www.contributor-covenant.org/translations.

CONTRIBUTING.adoc

Lines changed: 227 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,227 @@
1+
= Contributors Guide
2+
3+
Improvements to Windup documentation are welcome.
4+
5+
In order to contribute, you will need a GitHub account and to have `git` installed on your machine. You can also log a {JiraWindupURL}[Jira issue] to track the changes.
6+
7+
Use the following steps to submit a change to the Windup documentation repository.
8+
9+
. Fork the link:https://github.com/windup/windup-documentation[windup-documentation] GitHub repository.
10+
+
11+
Click the *Fork* button in the top right corner of the page.
12+
. Clone the forked repository locally.
13+
+
14+
[source,terminal,subs="attributes+"]
15+
----
16+
$ git clone [email protected]:YOUR_USERNAME/windup-documentation.git
17+
----
18+
. Add the upstream repository.
19+
+
20+
[source,terminal,subs="attributes+"]
21+
----
22+
git remote add -f upstream [email protected]:windup/windup-documentation.git
23+
----
24+
. Get the latest changes.
25+
+
26+
[source,terminal,subs="attributes+"]
27+
----
28+
$ git fetch upstream
29+
----
30+
. Check out a topic branch.
31+
+
32+
[source,terminal,subs="attributes+"]
33+
----
34+
$ git checkout -b BRANCH_NAME upstream/master
35+
----
36+
. Make the desired edits.
37+
+
38+
The documentation is written in link:http://asciidoc.org/[AsciiDoc]. Review the xref:asciidoc_guidelines[AsciiDoc Guidelines and Tips] section of this guide before making changes.
39+
. Build the guides to verify your changes.
40+
.. Navigate to the appropriate guide's directory and issue the following command. Note that you must have link:http://asciidoctor.org/[Asciidoctor] installed.
41+
+
42+
[source,terminal,subs="attributes+"]
43+
----
44+
$ cd docs/cli-guide/
45+
$ asciidoctor -t -dbook -a toc -o html/cli-guide.html master.adoc
46+
----
47+
.. View the generated HTML file in a browser.
48+
. Add each new or updated file to git.
49+
+
50+
[source,terminal,subs="attributes+"]
51+
----
52+
$ git add FILE_NAME.adoc
53+
----
54+
. Commit the changes locally.
55+
+
56+
[source,terminal,subs="attributes+"]
57+
----
58+
$ git commit -m "My commit message."
59+
----
60+
. Push the changes to your forked repository.
61+
+
62+
[source,terminal,subs="attributes+"]
63+
----
64+
$ git push origin HEAD
65+
----
66+
. Open a pull request to merge your changes to the master branch.
67+
.. Navigate to your forked repository in a browser: https://github.com/YOUR_USERNAME/windup-documentation.
68+
.. Open a new pull request. Be sure to review the diff before submitting.
69+
.. A member of the Windup documentation team will merge or provide feedback on your request.
70+
71+
== Building the Guides
72+
73+
Navigate to the appropriate guide's directory and issue the following command. Note that you must have link:http://asciidoctor.org/[Asciidoctor] installed.
74+
75+
[source,terminal,subs="attributes+"]
76+
----
77+
$ cd docs/cli-guide/
78+
$ asciidoctor -t -dbook -a toc -o html/cli-guide.html master.adoc
79+
----
80+
81+
View the generated HTML file in a browser.
82+
83+
== Publishing the Guides
84+
85+
The Windup guides are published downstream on the link:https://access.redhat.com/documentation/en/migration_toolkit_for_applications/[Red Hat Customer Portal].
86+
87+
[[asciidoc_guidelines]]
88+
== AsciiDoc Guidelines and Tips
89+
90+
=== AsciiDoc Editors
91+
92+
The following editors make editing and reviewing AsciiDoc files easy.
93+
94+
* link:https://atom.io/[Atom] with the `asciidoc-preview` and `language-asciidoc` packages.
95+
* link:http://asciidocfx.com/[AsciidocFX]
96+
* Any basic editor, such as gedit, with the Chrome link:https://chrome.google.com/webstore/detail/asciidoctorjs-live-previe/iaalpfgpbocpdfblpnhhgllgbdbchmia?hl=en[Asciidoctor.js] plugin
97+
98+
=== AsciiDoc Syntax Basics
99+
100+
For a comprehensive reference of AsciiDoc syntax, see the link:http://asciidoc.org/userguide.html[AsciiDoc User Guide].
101+
102+
* Headings
103+
+
104+
[source,terminal,subs="attributes+"]
105+
----
106+
= Heading Level 1
107+
== Heading Level 2
108+
=== Heading Level 3
109+
----
110+
* Bold text
111+
+
112+
[source,terminal,subs="attributes+"]
113+
----
114+
*Bold text*
115+
----
116+
* Italic text
117+
+
118+
[source,terminal,subs="attributes+"]
119+
----
120+
_Italic text_
121+
----
122+
* Monospace text
123+
+
124+
[source,terminal,subs="attributes+"]
125+
----
126+
`Monospace text`
127+
----
128+
* Bullets
129+
+
130+
[source,terminal,subs="attributes+"]
131+
----
132+
* Item one
133+
* Item two
134+
----
135+
* Numbered list
136+
+
137+
[source,terminal,subs="attributes+"]
138+
----
139+
. Step one
140+
. Step two
141+
----
142+
143+
* Code block
144+
+
145+
--------
146+
----
147+
System.out.println("Hello");
148+
----
149+
--------
150+
151+
=== Creating a New AsciiDoc File
152+
153+
* Name the file using only letters, numbers, and dashes, and with an extension of `.adoc`. For example, `my-topic.adoc`.
154+
* Add an anchor at the top of the file, using underscores. For example, `\[[my_anchor]]`.
155+
* Start each topic with a level one heading. For example, `= My Heading`.
156+
* Add this new topic to the `master.adoc` file using the `include::` syntax.
157+
** Pass in a `leveloffset=+N` to adjust the heading levels in the included file to be the correct level.
158+
159+
.Example master.adoc File
160+
161+
[source,terminal,subs="attributes+"]
162+
----
163+
= My Guide Title
164+
165+
\include::topics/my-topic.adoc[leveloffset=+1]
166+
----
167+
168+
.Example my-topic.adoc File
169+
[source,terminal,subs="attributes+"]
170+
----
171+
[[my_anchor]]
172+
= My Heading
173+
174+
Text here.
175+
176+
== My Subsection
177+
178+
Text here.
179+
----
180+
181+
182+
=== Linking to Other Files
183+
184+
Use `xref` to link to a section within the same guide. You must define an explicit anchor in order to link.
185+
186+
.Link to a Section in the Same Guide
187+
[source,terminal,subs="attributes+"]
188+
----
189+
For more information, see xref:section_anchor[This Section].
190+
...
191+
192+
[[section_anchor]]
193+
== This Section
194+
...
195+
----
196+
197+
Use `link` to reference an external URL.
198+
199+
.Link to an External Link
200+
[source,terminal,subs="attributes+"]
201+
----
202+
Navigate to the link:https://github.com/windup/windup-documentation[Windup GitHub repository].
203+
----
204+
205+
=== Using AsciiDoc Attributes
206+
207+
The Windup documentation defines several AsciiDoc attributes in the `docs/templates/document-attributes.adoc` file. This allows you to define the value one place and then used it repeatedly throughout the guides. An example usage of this is defining the Windup version.
208+
209+
==== Defining an Attribute
210+
211+
Define an attribute in the `document-attributes.adoc` file using the following syntax.
212+
213+
[source,terminal,subs="attributes+"]
214+
----
215+
:ProductVersion: 5.0.0.Final
216+
----
217+
218+
==== Using an Attribute
219+
220+
An attribute can then be referenced in an AsciiDoc file using the following syntax.
221+
222+
[source,terminal,subs="attributes+"]
223+
----
224+
The Windup version is {ProductVersion}.
225+
----
226+
227+
This will be resolved as "The Windup version is 5.0.0.Final".

Gemfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# frozen_string_literal: true
2+
# Encoding.default_external = Encoding::UTF_8
3+
# Encoding.default_internal = Encoding::UTF_8
4+
5+
source "https://rubygems.org"
6+
7+
# gem "asciidoctor-pdf"
8+
gem "asciidoctor"
9+
# gem "bundle"
10+
# gem "html-proofer"
11+
gem "jekyll-theme-minimal"
12+
# gem "jekyll-feed"
13+
gem "jekyll-paginate"
14+
# gem "jekyll-redirect-from"
15+
# gem "jekyll-sitemap"
16+
# gem "jekyll-tagging"
17+
# gem 'jekyll-seo-tag'
18+
# gem "jekyll", ">= 3.5"
19+
# gem "premonition", ">= 4.0.0"
20+
# gem "pygments.rb"
21+
# gem "rake"
22+
#
23+
gem "github-pages", group: :jekyll_plugins
24+
25+
# ensures that jekyll-asciidoc is loaded first
26+
group :jekyll_plugins do
27+
gem 'jekyll-asciidoc'
28+
end
29+
30+
gemspec

0 commit comments

Comments
 (0)