Skip to content

Commit

Permalink
Merge pull request #138 from prgrms-be-devcourse/HIMIN-229-index-docs…
Browse files Browse the repository at this point in the history
…-gonmoseull

[HIMIN-229] feat : restdocs html 생성
  • Loading branch information
BeommoKoo-dev committed Sep 25, 2023
2 parents 0e36715 + d58aaf1 commit 8bd16a5
Show file tree
Hide file tree
Showing 25 changed files with 13,694 additions and 15 deletions.
939 changes: 939 additions & 0 deletions BOOT-INF/classes/static/docs/delivery.html

Large diffs are not rendered by default.

469 changes: 469 additions & 0 deletions BOOT-INF/classes/static/docs/index.html

Large diffs are not rendered by default.

1,249 changes: 1,249 additions & 0 deletions BOOT-INF/classes/static/docs/member.html

Large diffs are not rendered by default.

878 changes: 878 additions & 0 deletions BOOT-INF/classes/static/docs/menu.html

Large diffs are not rendered by default.

673 changes: 673 additions & 0 deletions BOOT-INF/classes/static/docs/menuOption.html

Large diffs are not rendered by default.

668 changes: 668 additions & 0 deletions BOOT-INF/classes/static/docs/menuOptionGroup.html

Large diffs are not rendered by default.

918 changes: 918 additions & 0 deletions BOOT-INF/classes/static/docs/order.html

Large diffs are not rendered by default.

1,032 changes: 1,032 additions & 0 deletions BOOT-INF/classes/static/docs/shop.html

Large diffs are not rendered by default.

25 changes: 18 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ configurations {
asciidoctorExt
}

bootJar {
dependsOn asciidoctor
from("${asciidoctor.outputDir}/html5") {
into 'static/docs'
}
}

repositories {
mavenCentral()
}
Expand Down Expand Up @@ -73,6 +66,24 @@ asciidoctor {
dependsOn test
}

bootJar {
dependsOn asciidoctor
copy {
from "${asciidoctor.outputDir}"
into 'BOOT-INF/classes/static/docs'
}
}

task copyDocument(type: Copy) {
dependsOn asciidoctor
from file("build/docs/asciidoc")
into file("src/main/resources/static/docs")
}

build {
dependsOn copyDocument
}

// Querydsl 추가, 자동 생성된 Q클래스 gradle clean으로 제거
clean {
delete file('src/main/generated')
Expand Down
3 changes: 1 addition & 2 deletions src/docs/delivery.adoc → src/docs/asciidoc/delivery.adoc
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
:hardbreaks:
ifndef::snippets[]
:snippets: ../../../target/generated-snippets
:snippets: ../../../build/generated-snippets
endif::[]

== 배달기사

=== 배달기사 생성
Expand Down
17 changes: 17 additions & 0 deletions src/docs/asciidoc/index.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
= 히히의 민환족 API 명세
:doctype: book
:icons: font
:source-highlighter: highlightjs // 코드들의 하이라이팅을 highlightjs를 사용
:toc: left // Table Of Contents(목차)를 문서의 좌측에 두기
:toclevels: 2 // 목차 레벨 설정
:sectlinks:
:sectnums: // 분류별 자동으로 숫자를 달아줌
:docinfo: shared-head

include::delivery.adoc[]
include::member.adoc[]
include::menu.adoc[]
include::menuOptionGroup.adoc[]
include::menuOption.adoc[]
include::order.adoc[]
include::shop.adoc[]
2 changes: 1 addition & 1 deletion src/docs/member.adoc → src/docs/asciidoc/member.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:hardbreaks:
ifndef::snippets[]
:snippets: ../../../target/generated-snippets
:snippets: ./build/generated-snippets
endif::[]

== 회원
Expand Down
2 changes: 1 addition & 1 deletion src/docs/menu.adoc → src/docs/asciidoc/menu.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:hardbreaks:
ifndef::snippets[]
:snippets: ../../../target/generated-snippets
:snippets: ./build/generated-snippets
endif::[]

== 메뉴
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:hardbreaks:
ifndef::snippets[]
:snippets: ../../../target/generated-snippets
:snippets: ./build/generated-snippets
endif::[]

== 메뉴옵션
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:hardbreaks:
ifndef::snippets[]
:snippets: ../../../target/generated-snippets
:snippets: ./build/generated-snippets
endif::[]

== 메뉴옵션그룹
Expand Down
2 changes: 1 addition & 1 deletion src/docs/order.adoc → src/docs/asciidoc/order.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:hardbreaks:
ifndef::snippets[]
:snippets: ../../../target/generated-snippets
:snippets: ./build/generated-snippets
endif::[]

== 주문
Expand Down
2 changes: 1 addition & 1 deletion src/docs/shop.adoc → src/docs/asciidoc/shop.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:hardbreaks:
ifndef::snippets[]
:snippets: ../../../target/generated-snippets
:snippets: ./build/generated-snippets
endif::[]

== 가게
Expand Down
939 changes: 939 additions & 0 deletions src/main/resources/static/docs/delivery.html

Large diffs are not rendered by default.

469 changes: 469 additions & 0 deletions src/main/resources/static/docs/index.html

Large diffs are not rendered by default.

1,249 changes: 1,249 additions & 0 deletions src/main/resources/static/docs/member.html

Large diffs are not rendered by default.

878 changes: 878 additions & 0 deletions src/main/resources/static/docs/menu.html

Large diffs are not rendered by default.

673 changes: 673 additions & 0 deletions src/main/resources/static/docs/menuOption.html

Large diffs are not rendered by default.

668 changes: 668 additions & 0 deletions src/main/resources/static/docs/menuOptionGroup.html

Large diffs are not rendered by default.

918 changes: 918 additions & 0 deletions src/main/resources/static/docs/order.html

Large diffs are not rendered by default.

1,032 changes: 1,032 additions & 0 deletions src/main/resources/static/docs/shop.html

Large diffs are not rendered by default.

0 comments on commit 8bd16a5

Please sign in to comment.