-
Notifications
You must be signed in to change notification settings - Fork 133
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 #1896 from guardrail-dev/docsify
Docsify
- Loading branch information
Showing
150 changed files
with
3,424 additions
and
1,287 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,23 +11,25 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-java@v4 | ||
- uses: olafurpg/setup-scala@v14 | ||
with: | ||
distribution: zulu | ||
java-version: 14 | ||
- uses: ruby/[email protected] | ||
with: | ||
bundler-cache: true | ||
- name: Install microsite deps | ||
run: | | ||
bundle install --jobs 4 --retry 3 --system | ||
java-version: [email protected] | ||
- name: Print versions | ||
run: | | ||
java -version | ||
gpg --version | ||
ruby --version | ||
bundle exec jekyll --version | ||
- name: Update website | ||
env: | ||
MICROSITE_PUBLISH_TOKEN: ${{ secrets.MICROSITE_PUBLISH_TOKEN }} | ||
run: bundle exec sbt microsite/makeMicrosite microsite/publishMicrosite | ||
run: | | ||
git clone "https://git:[email protected]/guardrail-dev/guardrail.git" --branch=gh-pages gh-pages && \ | ||
pushd gh-pages && \ | ||
git rm -rf . && \ | ||
git config user.email "[email protected]" && \ | ||
git config user.name "guardrail website builder" && \ | ||
popd && \ | ||
sbt microsite/mdoc && \ | ||
tar -cC modules/microsite/target/mdoc/ . | tar -vxC gh-pages && \ | ||
pushd gh-pages && \ | ||
git add . && \ | ||
git commit -m "Updating ${{ github.ref_name }}" && \ | ||
git push |
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ vendor/ | |
.bundle/ | ||
metals.sbt | ||
.sbtopts | ||
node_modules/ |
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
File renamed without changes.
File renamed without changes.
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 @@ | ||
Introduction | ||
=== | ||
|
||
[![Build Status](https://github.com/guardrail-dev/guardrail/workflows/CI/badge.svg)](https://github.com/guardrail-dev/guardrail/actions?query=workflow%3A%22CI%22) | [![codecov](https://codecov.io/gh/guardrail-dev/guardrail/branch/master/graph/badge.svg?token=ssLYYkVBgv)](https://codecov.io/gh/guardrail-dev/guardrail) | [![Matrix chat](https://img.shields.io/matrix/guardrail:matrix.org.svg?label=matrix&server_fqdn=matrix.org)](https://matrix.to/#/#guardrail:matrix.org) | [![Join the chat at https://gitter.im/guardrail-dev/guardrail](https://badges.gitter.im/guardrail-dev/guardrail.svg)](https://gitter.im/guardrail-dev/guardrail?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | [![Scala Steward badge](https://img.shields.io/badge/Scala_Steward-helping-blue.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAMAAAARSr4IAAAAVFBMVEUAAACHjojlOy5NWlrKzcYRKjGFjIbp293YycuLa3pYY2LSqql4f3pCUFTgSjNodYRmcXUsPD/NTTbjRS+2jomhgnzNc223cGvZS0HaSD0XLjbaSjElhIr+AAAAAXRSTlMAQObYZgAAAHlJREFUCNdNyosOwyAIhWHAQS1Vt7a77/3fcxxdmv0xwmckutAR1nkm4ggbyEcg/wWmlGLDAA3oL50xi6fk5ffZ3E2E3QfZDCcCN2YtbEWZt+Drc6u6rlqv7Uk0LdKqqr5rk2UCRXOk0vmQKGfc94nOJyQjouF9H/wCc9gECEYfONoAAAAASUVORK5CYII=)](https://scala-steward.org) | ||
|
||
[`guardrail`](https://github.com/guardrail-dev/guardrail) is a code generation tool, capable of reading from OpenAPI/Swagger specification files and generating high quality source code for a variety of languages and frameworks. | ||
|
||
Getting started | ||
=== | ||
|
||
The following build tool plugins are available: | ||
|
||
- [`sbt-guardrail`](https://github.com/guardrail-dev/sbt-guardrail) | ||
- [`guardrail-maven-plugin`](https://github.com/guardrail-dev/guardrail-maven-plugin) | ||
- [`guardrail-gradle-plugin`](https://github.com/guardrail-dev/guardrail-gradle-plugin) | ||
- as well as a manual CLI runner available via [coursier](cli.md) | ||
|
||
New plugins are straightforward, simply call one of the exposed functions from | ||
[`GuardrailRunner`](https://github.com/guardrail-dev/guardrail/blob/master/modules/core/src/main/scala/dev/guardrail/runner/GuardrailRunner.scala) | ||
with appropriate arguments in order to get a sequence of generated files. | ||
|
||
**NB:** Ensure either you or your build tool deduplicates the file sequence, as | ||
they are not guaranteed to be unique across multiple runs of the guardrail core. | ||
|
||
Additionally, check out the [`guardrail-sample`](https://github.com/topics/guardrail-sample) topic on GitHub for more examples. | ||
|
||
**Consulting**: If you need help getting started, getting migrated, or adding features, please contact [[email protected]](mailto:[email protected]). |
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,6 @@ | ||
- [Home](/) | ||
- [What is guardrail?](about.md) | ||
- [Sample API Specification](sample-spec.md) | ||
- [Scala](scala/README.md) | ||
- [Java](java/README.md) | ||
- [Extensions](extensions.md) |
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 @@ | ||
## CLI runner | ||
|
||
TODO |
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,14 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en-US"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="refresh" content="0; url=https://guardrail.dev/"> | ||
<script type="text/javascript"> | ||
window.location.href = "https://guardrail.dev/" | ||
</script> | ||
<title>Page Redirection</title> | ||
</head> | ||
<body> | ||
If you are not redirected automatically, follow this <a href='https://guardrail.dev/'>link to example</a>. | ||
</body> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en-US"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="refresh" content="0; url=https://guardrail.dev/#/java/dropwizard/README?id=generating-a-server"> | ||
<script type="text/javascript"> | ||
window.location.href = "https://guardrail.dev/#/java/dropwizard/README?id=generating-a-server" | ||
</script> | ||
<title>Page Redirection</title> | ||
</head> | ||
<body> | ||
If you are not redirected automatically, follow this <a href='https://guardrail.dev/#/java/dropwizard/README?id=generating-a-server'>link to example</a>. | ||
</body> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en-US"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="refresh" content="0; url=https://guardrail.dev/#/java/dropwizard/README?id=generating-clients"> | ||
<script type="text/javascript"> | ||
window.location.href = "https://guardrail.dev/#/java/dropwizard/README?id=generating-clients" | ||
</script> | ||
<title>Page Redirection</title> | ||
</head> | ||
<body> | ||
If you are not redirected automatically, follow this <a href='https://guardrail.dev/#/java/dropwizard/README?id=generating-clients'>link to example</a>. | ||
</body> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en-US"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="refresh" content="0; url=https://guardrail.dev/#/java/dropwizard/README.md"> | ||
<script type="text/javascript"> | ||
window.location.href = "https://guardrail.dev/#/java/dropwizard/README.md" | ||
</script> | ||
<title>Page Redirection</title> | ||
</head> | ||
<body> | ||
If you are not redirected automatically, follow this <a href='https://guardrail.dev/#/java/dropwizard/README.md'>link to example</a>. | ||
</body> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en-US"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="refresh" content="0; url=https://guardrail.dev/#/java/README?id=installation"> | ||
<script type="text/javascript"> | ||
window.location.href = "https://guardrail.dev/#/java/README?id=installation" | ||
</script> | ||
<title>Page Redirection</title> | ||
</head> | ||
<body> | ||
If you are not redirected automatically, follow this <a href='https://guardrail.dev/#/java/README?id=installation'>link to example</a>. | ||
</body> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en-US"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="refresh" content="0; url=https://guardrail.dev/#/sample-spec"> | ||
<script type="text/javascript"> | ||
window.location.href = "https://guardrail.dev/#/sample-spec" | ||
</script> | ||
<title>Page Redirection</title> | ||
</head> | ||
<body> | ||
If you are not redirected automatically, follow this <a href='https://guardrail.dev/#/sample-spec'>link to example</a>. | ||
</body> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en-US"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="refresh" content="0; url=https://guardrail.dev/#/about"> | ||
<script type="text/javascript"> | ||
window.location.href = "https://guardrail.dev/#/about" | ||
</script> | ||
<title>Page Redirection</title> | ||
</head> | ||
<body> | ||
If you are not redirected automatically, follow this <a href='https://guardrail.dev/#/about'>link to example</a>. | ||
</body> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en-US"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="refresh" content="0; url=https://guardrail.dev/#/java/README.md"> | ||
<script type="text/javascript"> | ||
window.location.href = "https://guardrail.dev/#/java/README.md" | ||
</script> | ||
<title>Page Redirection</title> | ||
</head> | ||
<body> | ||
If you are not redirected automatically, follow this <a href='https://guardrail.dev/#/java/README.md'>link to example</a>. | ||
</body> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en-US"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="refresh" content="0; url=https://guardrail.dev/#/java/spring-mvc/README.md"> | ||
<script type="text/javascript"> | ||
window.location.href = "https://guardrail.dev/#/java/spring-mvc/README.md" | ||
</script> | ||
<title>Page Redirection</title> | ||
</head> | ||
<body> | ||
If you are not redirected automatically, follow this <a href='https://guardrail.dev/#/java/spring-mvc/README.md'>link to example</a>. | ||
</body> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en-US"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="refresh" content="0; url=https://guardrail.dev/#/scala/akka-http/jackson"> | ||
<script type="text/javascript"> | ||
window.location.href = "https://guardrail.dev/#/scala/akka-http/jackson" | ||
</script> | ||
<title>Page Redirection</title> | ||
</head> | ||
<body> | ||
If you are not redirected automatically, follow this <a href='https://guardrail.dev/#/scala/akka-http/jackson'>link to example</a>. | ||
</body> | ||
</html> |
Oops, something went wrong.