Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
plugins {
id 'org.springframework.boot' version '2.5.2'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id "org.asciidoctor.convert" version "1.5.9.2"
id "org.asciidoctor.jvm.convert" version "3.3.2"
id 'java'
}

configurations {
asciidoctorExt
}

group = 'nextstep'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
Expand All @@ -31,7 +35,7 @@ dependencies {
implementation 'io.jsonwebtoken:jjwt:0.9.1'

// rest docs
asciidoctor 'org.springframework.restdocs:spring-restdocs-asciidoctor:2.0.5.RELEASE'
asciidoctorExt 'org.springframework.restdocs:spring-restdocs-asciidoctor:2.0.5.RELEASE'
testImplementation 'org.springframework.restdocs:spring-restdocs-restassured:2.0.5.RELEASE'

// test
Expand Down Expand Up @@ -61,6 +65,7 @@ task testDocument(type: Test) {

asciidoctor {
inputs.dir snippetsDir
configurations 'asciidoctorExt'
dependsOn test
}

Expand All @@ -72,8 +77,8 @@ bootJar {
}

task copyDocument(type: Copy) {
dependsOn testDocument
dependsOn asciidoctor

from file("build/asciidoc/html5/index.html")
from file("build/docs/asciidoc")
into file("src/main/resources/static/docs")
}
9 changes: 5 additions & 4 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion src/docs/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@
:toclevels: 2
:sectlinks:

include::path.adoc[]
[[path]]
== 지하철 경로

=== 경로 조회

operation::path[snippets='http-request,http-response']
12 changes: 0 additions & 12 deletions src/docs/asciidoc/path.adoc

This file was deleted.