Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vitepress #53

Merged
merged 12 commits into from
Jul 10, 2024
Merged
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ target/

node_modules/
.factorypath
**/.vitepress/dist
**/.vitepress/cache
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ install:

.PHONY: docs watch-docs
docs:
mvn asciidoctor:process-asciidoc
npm run docs:build
mvn javadoc:javadoc
cp -R target/site/apidocs target/generated-docs/
cp -R target/site/apidocs xdocs/.vitepress/dist/
npm run deploy-docs

watch-docs:
Expand Down
4 changes: 2 additions & 2 deletions examples/myapp/src/main/java/app/MyApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.springframework.boot.autoconfigure.SpringBootApplication;


// tag::install[]
// #region install
@SpringBootApplication
@EnableQueryResponse
public class MyApp {
Expand All @@ -16,4 +16,4 @@ public static void main(String[] args) {
SpringApplication.run(MyApp.class, args);
}
}
// end::install[]
// #endregion install
4 changes: 2 additions & 2 deletions examples/myapp/src/main/java/app/Queries.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import java.util.Collection;


// tag::query[]
// #region query
@Component
public class Queries {

Expand All @@ -34,4 +34,4 @@ public void query() {
polos.stream().map("marco? "::concat).forEach(System.out::println);
}
}
// end::query[]
// #endregion query
4 changes: 2 additions & 2 deletions examples/myapp/src/main/java/app/Responses.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.springframework.stereotype.Component;


// tag::response[]
// #region response
@Component
public class Responses {

Expand All @@ -29,4 +29,4 @@ public void response() {
.from("polo", "yolo"); // <3>
}
}
// end::response[]
// #endregion response
4 changes: 2 additions & 2 deletions examples/querying/src/main/java/examples/Authors.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import java.util.Collection;


//tag::class[]
// #region class
@Component
public class Authors {

Expand All @@ -23,4 +23,4 @@ public Collection<String> findAuthors() {
.orEmpty();
}
}
//end::class[]
// #endregion class
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import org.springframework.stereotype.Component;


//tag::class[]
// #region class
@Component
public class OnlyThreeAuthors {

Expand All @@ -26,4 +26,4 @@ public void respondWithAuthors() {
.from("Tolkien", "Lewis", "Rowling");
}
}
//end::class[]
// #endregion class
Loading
Loading