mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-26 06:11:21 +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
|
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
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-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