Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
RAGO - RAG OpenAPI Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JastAdd
RAGO - RAG OpenAPI Framework
Commits
6ac97f5f
Commit
6ac97f5f
authored
3 years ago
by
Johannes Mey
Browse files
Options
Downloads
Plain Diff
Merge branch '7-put-grammar-diagram-in-gitlab-pages' into 'main'
Resolve "Put grammar diagram in gitlab pages" Closes
#7
See merge request
!3
parents
a5f91877
6682af4c
No related branches found
No related tags found
1 merge request
!3
Resolve "Put grammar diagram in gitlab pages"
Pipeline
#13167
failed
3 years ago
Stage: build
Stage: test
Stage: ragdoc
Stage: publish
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+6
-7
6 additions, 7 deletions
.gitlab-ci.yml
build.gradle
+23
-0
23 additions, 0 deletions
build.gradle
gradle.properties
+2
-1
2 additions, 1 deletion
gradle.properties
pages/docs/index.md
+3
-1
3 additions, 1 deletion
pages/docs/index.md
with
34 additions
and
9 deletions
.gitlab-ci.yml
+
6
−
7
View file @
6ac97f5f
...
@@ -10,13 +10,17 @@ stages:
...
@@ -10,13 +10,17 @@ stages:
build
:
build
:
image
:
openjdk:11
image
:
openjdk:11
stage
:
build
stage
:
build
before_script
:
-
apt-get update && apt-get -y install graphviz
script
:
script
:
-
"
./gradlew
relast"
-
"
./gradlew
relast"
-
"
./gradlew
assemble"
-
"
./gradlew
assemble"
-
"
./gradlew
generateGrammarDiagrams"
artifacts
:
artifacts
:
paths
:
paths
:
-
"
src/gen/java"
-
"
src/gen/java"
-
"
src/gen/jastadd"
-
"
src/gen/jastadd"
-
"
src/gen/resources"
test
:
test
:
image
:
openjdk:11
image
:
openjdk:11
...
@@ -59,9 +63,6 @@ ragdoc_view:
...
@@ -59,9 +63,6 @@ ragdoc_view:
-
OUTPUT_DIR=$(pwd -P)/pages/docs/ragdoc
-
OUTPUT_DIR=$(pwd -P)/pages/docs/ragdoc
-
cd /ragdoc-view/src/ && rm -rf data && ln -s $DATA_DIR
-
cd /ragdoc-view/src/ && rm -rf data && ln -s $DATA_DIR
-
/ragdoc-view/build-view.sh --output-path=$OUTPUT_DIR
-
/ragdoc-view/build-view.sh --output-path=$OUTPUT_DIR
only
:
-
tests/openapi-generator
-
main
artifacts
:
artifacts
:
paths
:
paths
:
-
"
pages/docs/ragdoc"
-
"
pages/docs/ragdoc"
...
@@ -75,10 +76,8 @@ pages:
...
@@ -75,10 +76,8 @@ pages:
before_script
:
before_script
:
-
pip install -r pages/requirements.txt
-
pip install -r pages/requirements.txt
script
:
script
:
-
cp -r src/gen/resources/diagrams/ pages/docs/diagrams
-
cd pages && mkdocs build
-
cd pages && mkdocs build
artifacts
:
artifacts
:
paths
:
paths
:
-
public/
-
public/
only
:
\ No newline at end of file
-
tests/openapi-generator
-
main
This diff is collapsed.
Click to expand it.
build.gradle
+
23
−
0
View file @
6ac97f5f
...
@@ -19,9 +19,15 @@ repositories {
...
@@ -19,9 +19,15 @@ repositories {
}
}
}
}
configurations
{
grammar2uml
relast
}
dependencies
{
dependencies
{
implementation
group:
'com.flipkart.zjsonpatch'
,
name:
'zjsonpatch'
,
version:
"${json_patch_version}"
implementation
group:
'com.flipkart.zjsonpatch'
,
name:
'zjsonpatch'
,
version:
"${json_patch_version}"
implementation
group:
'io.swagger.parser.v3'
,
name:
'swagger-parser'
,
version:
"${swagger_parser_version}"
implementation
group:
'io.swagger.parser.v3'
,
name:
'swagger-parser'
,
version:
"${swagger_parser_version}"
grammar2uml
group:
'de.tudresden.inf.st'
,
name:
'grammar2uml'
,
version:
"${grammar2uml_version}"
testImplementation
group:
'org.junit.jupiter'
,
name:
'junit-jupiter-engine'
,
version:
"${junit_jupiter_version}"
testImplementation
group:
'org.junit.jupiter'
,
name:
'junit-jupiter-engine'
,
version:
"${junit_jupiter_version}"
testImplementation
group:
'org.junit.jupiter'
,
name:
'junit-jupiter-api'
,
version:
"${junit_jupiter_version}"
testImplementation
group:
'org.junit.jupiter'
,
name:
'junit-jupiter-api'
,
version:
"${junit_jupiter_version}"
...
@@ -86,6 +92,20 @@ def relastOutputFiles = [
...
@@ -86,6 +92,20 @@ def relastOutputFiles = [
"src/gen/jastadd/OpenAPISpecification.ast"
,
"src/gen/jastadd/OpenAPISpecification.ast"
,
"src/gen/jastadd/OpenAPISpecification.jadd"
"src/gen/jastadd/OpenAPISpecification.jadd"
]
]
def
grammarDiagramFile
=
'./src/gen/resources/diagrams/grammar/openapiRelast.png'
task
generateGrammarDiagrams
(
type:
JavaExec
)
{
group
=
'Documentation'
classpath
=
configurations
.
grammar2uml
main
=
'de.tudresden.inf.st.jastadd.grammar2uml.compiler.Compiler'
args
"--output=${grammarDiagramFile}"
,
'--defaultFolders'
args
relastInputFiles
inputs
.
files
relastInputFiles
outputs
.
files
file
(
grammarDiagramFile
)
}
task
relast
(
type:
JavaExec
)
{
task
relast
(
type:
JavaExec
)
{
classpath
=
files
(
"libs/relast.jar"
)
classpath
=
files
(
"libs/relast.jar"
)
...
@@ -163,3 +183,6 @@ jastadd {
...
@@ -163,3 +183,6 @@ jastadd {
delete
"src/gen-res"
delete
"src/gen-res"
}
}
}
}
generateAst
.
dependsOn
relast
generateGrammarDiagrams
.
dependsOn
generateAst
This diff is collapsed.
Click to expand it.
gradle.properties
+
2
−
1
View file @
6ac97f5f
...
@@ -2,4 +2,5 @@ json_patch_version = 0.4.11
...
@@ -2,4 +2,5 @@ json_patch_version = 0.4.11
swagger_parser_version
=
2.0.30
swagger_parser_version
=
2.0.30
junit_jupiter_version
=
5.7.0
junit_jupiter_version
=
5.7.0
json_path_version
=
2.6.0
json_path_version
=
2.6.0
jastaddgradle_version
=
1.13.3
jastaddgradle_version
=
1.13.3
\ No newline at end of file
grammar2uml_version
=
0.2.2-13
This diff is collapsed.
Click to expand it.
pages/docs/index.md
+
3
−
1
View file @
6ac97f5f
Index
Index
\ No newline at end of file

\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment