mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-22 12:21:16 +00:00
Use typedoc instead of async api.
This commit is contained in:
parent
e7f6f86faa
commit
de0c203076
5 changed files with 13 additions and 4721 deletions
4
.gitmodules
vendored
4
.gitmodules
vendored
|
@ -14,3 +14,7 @@
|
|||
path = lemmy-instance-stats
|
||||
url = https://github.com/LemmyNet/lemmy-instance-stats
|
||||
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
|
||||
RUN mdbook build lemmy-docs -d ../docs
|
||||
|
||||
# Build the asyncapi API docs
|
||||
FROM asyncapi/generator:1.8.0 as api
|
||||
# Build the typedoc API docs
|
||||
FROM node:14-alpine as api
|
||||
WORKDIR /app
|
||||
COPY src/assets/scripts/asyncapi.yaml ./
|
||||
RUN ag -o ./api ./asyncapi.yaml @asyncapi/html-template --force-write
|
||||
COPY lemmy-js-client lemmy-js-client
|
||||
WORKDIR /app/lemmy-js-client
|
||||
RUN yarn
|
||||
RUN yarn docs
|
||||
|
||||
# Build the isomorphic app
|
||||
FROM node:14-alpine as builder
|
||||
|
@ -37,7 +39,7 @@ COPY src src
|
|||
|
||||
# Copy the docs and API
|
||||
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 build:prod
|
||||
|
|
1
lemmy-js-client
Submodule
1
lemmy-js-client
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 8f35e63b3ad87af41f3718d1648446deae61c33e
|
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-instance-stats
|
||||
git add lemmy-docs
|
||||
git add lemmy-js-client
|
||||
|
||||
git commit -m"Updating submodules"
|
||||
git push
|
||||
|
|
Loading…
Reference in a new issue