mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-28 15:21:18 +00:00
Use typedoc instead of async api. (#58)
* Use typedoc instead of async api. * Updating for new lemmy docs. * Updating submodules
This commit is contained in:
parent
e7f6f86faa
commit
b275ea8d8c
7 changed files with 15 additions and 4723 deletions
4
.gitmodules
vendored
4
.gitmodules
vendored
|
@ -14,3 +14,7 @@
|
||||||
path = lemmy-instance-stats
|
path = lemmy-instance-stats
|
||||||
url = https://github.com/LemmyNet/lemmy-instance-stats
|
url = https://github.com/LemmyNet/lemmy-instance-stats
|
||||||
branch = main
|
branch = main
|
||||||
|
[submodule "lemmy-js-client"]
|
||||||
|
path = lemmy-js-client
|
||||||
|
url = https://github.com/LemmyNet/lemmy-js-client
|
||||||
|
branch = main
|
||||||
|
|
12
Dockerfile
12
Dockerfile
|
@ -8,11 +8,13 @@ RUN cargo install mdbook \
|
||||||
COPY lemmy-docs ./lemmy-docs
|
COPY lemmy-docs ./lemmy-docs
|
||||||
RUN mdbook build lemmy-docs -d ../docs
|
RUN mdbook build lemmy-docs -d ../docs
|
||||||
|
|
||||||
# Build the asyncapi API docs
|
# Build the typedoc API docs
|
||||||
FROM asyncapi/generator:1.8.0 as api
|
FROM node:14-alpine as api
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY src/assets/scripts/asyncapi.yaml ./
|
COPY lemmy-js-client lemmy-js-client
|
||||||
RUN ag -o ./api ./asyncapi.yaml @asyncapi/html-template --force-write
|
WORKDIR /app/lemmy-js-client
|
||||||
|
RUN yarn
|
||||||
|
RUN yarn docs
|
||||||
|
|
||||||
# Build the isomorphic app
|
# Build the isomorphic app
|
||||||
FROM node:14-alpine as builder
|
FROM node:14-alpine as builder
|
||||||
|
@ -37,7 +39,7 @@ COPY src src
|
||||||
|
|
||||||
# Copy the docs and API
|
# Copy the docs and API
|
||||||
COPY --from=docs /app/docs ./src/assets/docs
|
COPY --from=docs /app/docs ./src/assets/docs
|
||||||
COPY --from=api /app/api ./src/assets/api
|
COPY --from=api /app/lemmy-js-client/docs ./src/assets/api
|
||||||
|
|
||||||
RUN yarn
|
RUN yarn
|
||||||
RUN yarn build:prod
|
RUN yarn build:prod
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 089ddd39d86de05ac501c9fb8b128e858e5b2fd8
|
Subproject commit 532b1c04cac39b143a116d3954307d5dde1d00a2
|
|
@ -1 +1 @@
|
||||||
Subproject commit c01366351d5689345dc1c983831abb78c74dae14
|
Subproject commit edc5fcd2a42c5b0538a67640e41bf0335285aeeb
|
1
lemmy-js-client
Submodule
1
lemmy-js-client
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit e2fe9478a82e304f79dcaa09ca8384f597fa4a39
|
File diff suppressed because it is too large
Load diff
|
@ -21,6 +21,7 @@ git add joinlemmy-translations
|
||||||
git add lemmy-translations
|
git add lemmy-translations
|
||||||
git add lemmy-instance-stats
|
git add lemmy-instance-stats
|
||||||
git add lemmy-docs
|
git add lemmy-docs
|
||||||
|
git add lemmy-js-client
|
||||||
|
|
||||||
git commit -m"Updating submodules"
|
git commit -m"Updating submodules"
|
||||||
git push
|
git push
|
||||||
|
|
Loading…
Reference in a new issue