WIP - Comments and Cloud 2

This commit is contained in:
Jonas Schwartz 2018-08-07 23:36:57 +02:00
parent 8f8e789afa
commit f1e2ef7af1
3 changed files with 42 additions and 0 deletions

View File

@ -1,5 +1,6 @@
site_name: 'Vapor Docs' site_name: 'Vapor Docs'
copyright: 'Copyright © 2018 Qutheory, LLC' copyright: 'Copyright © 2018 Qutheory, LLC'
site_url: 'https://vapor-docs.v2.vapor.cloud/3.0/'
pages: pages:
- 'Overview': 'index.md' - 'Overview': 'index.md'
@ -135,6 +136,7 @@ extra:
font: font:
text: 'Roboto Slab' text: 'Roboto Slab'
code: 'Source Code Pro' code: 'Source Code Pro'
disqus: 'staging-vapor-docs'
google_analytics: google_analytics:
- 'UA-76177358-4' - 'UA-76177358-4'

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM python:alpine as build-stage
# Set up workspace and install mkdocs and dependencies.
COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt && rm -rf $HOME/.cache/pip
RUN cd 3.0 && mkdocs build
FROM nginx:1.13.12-alpine as production-stage
COPY --from=build-stage /app/3.0/site/ /usr/share/nginx/html/3.0
RUN echo "<meta http-equiv=\"refresh\" content=\"0; url=/3.0/\">" > /usr/share/nginx/html/index.html;
RUN chown -R nginx:nginx /usr/share/nginx/html/
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

25
requirements.txt Normal file
View File

@ -0,0 +1,25 @@
# Copyright (c) 2016-2018 Martin Donath <martin.donath@squidfunk.com>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
# Direct dependencies
mkdocs>=1
mkdocs-material>=3
Pygments>=2.2
pymdown-extensions>=4.11