Skip to content

Commit

Permalink
Merge pull request #53 from olle/vitepress
Browse files Browse the repository at this point in the history
Vitepress
  • Loading branch information
olle committed Jul 10, 2024
2 parents fea5f14 + 85f5ce5 commit 293883a
Show file tree
Hide file tree
Showing 20 changed files with 3,046 additions and 500 deletions.
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

0 comments on commit 293883a

Please sign in to comment.