Skip to content

Commit

Permalink
deploy the catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
privat committed Jul 5, 2024
1 parent c3d23d1 commit 6661b4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ENV PATH /nit/bin/:$PATH
RUN make -C nit/contrib/nitiwiki

FROM ubuntu:24.04
RUN apt-get update && apt-get install -y git libunwind8 libgc1 highlight pandoc wget unzip make texlive-latex-base lmodern texlive-latex-recommended texlive-latex-extra --no-install-recommends
RUN apt-get update && apt-get install -y git ca-certificates libunwind8 libgc1 highlight pandoc wget unzip make texlive-latex-base lmodern texlive-latex-recommended texlive-latex-extra --no-install-recommends && apt-get clean
COPY --from=0 /nit/contrib/nitiwiki/bin/nitiwiki /bin/nitiwiki
COPY --from=0 /nit/misc/highlight/nit.lang /usr/share/highlight/langDefs
RUN /bin/nitiwiki --help
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,23 @@ rebuild:
git pull
nitiwiki --render --force -v

deploy: doc.zip man.zip
deploy: doc.zip man.zip catalog.zip
make -C pages/manual
unzip -o man.zip -d pages/tools
nitiwiki --render --force -v
unzip -o doc.zip -d tmp
mv tmp/nitc tmp/stdlib target/doc/
unzip -o catalog.zip -d target/catalog/

doc.zip:
wget https://nightly.link/nitlang/nit/workflows/master/test-ci/doc.zip

man.zip:
wget https://nightly.link/nitlang/nit/workflows/master/test-ci/man.zip

catalog.zip:
wget https://nightly.link/nitlang/nit/workflows/master/test-ci/catalog.zip

clean:
rm -r tmp/
rm -r target/
rm -r target/

0 comments on commit 6661b4c

Please sign in to comment.