Skip to content

Commit

Permalink
Merge pull request #35 from arXiv/develop
Browse files Browse the repository at this point in the history
Preparation to release docs 0.2
  • Loading branch information
eawoods authored Feb 13, 2019
2 parents b34d46c + dba0715 commit 6f34099
Show file tree
Hide file tree
Showing 729 changed files with 31,367 additions and 5,364 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,6 @@ src/
temp/
.DS_Store

idx/
idx_components/
idx_static/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "markdown"]
path = markdown
url = git@github.com:arXiv/arxiv-markdown.git
22 changes: 0 additions & 22 deletions Dockerfile

This file was deleted.

43 changes: 43 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

export REPO_ORG=arxiv
export REPO_NAME=arxiv-docs
export TARGET_REPO=git@github.com:${REPO_ORG}/${REPO_NAME}.git
export SOURCE_REF=0.0.0
export SOURCE_DIR=help
export SITE_NAME=help
export SITE_HUMAN_NAME="arXiv Help Pages"
export IMAGE_NAME=arxiv/help
export TMP_DIR=/tmp/docs-build
export PROJECT_NAME=arXiv Static
export BUILD_TIME=`date`
export NOCACHE=`date +%s`


remote: Makefile
./markdown/bin/make_remote.sh && \
rm -rf ./markdown/source && mkdir ./markdown/source && \
cp -R ${TMP_DIR}/${SOURCE_DIR}/* ./markdown/source && \
docker build ./markdown/ \
--build-arg NOCACHE=${NOCACHE} \
--build-arg VERSION=${SOURCE_REF} \
--build-arg BUILD_TIME=$(date) \
--build-arg SOURCE=${REPO_ORG}/${REPO_NAME} \
--build-arg SITE_NAME=${SITE_NAME} \
--build-arg SITE_HUMAN_NAME=${SITE_HUMAN_NAME} \
-f ./markdown/Dockerfile -t ${IMAGE_NAME}:${SOURCE_REF} && \
rm -rf ./markdown/source

local: Makefile
echo "Build locally at "${BUILD_TIME} && \
rm -rf ./markdown/source && mkdir ./markdown/source && \
cp -R ${SOURCE_DIR}/* ./markdown/source && \
ls -la ./markdown/source && \
docker build ./markdown/ \
--build-arg NOCACHE=${NOCACHE} \
--build-arg VERSION=${SOURCE_REF} \
--build-arg BUILD_TIME="${BUILD_TIME}" \
--build-arg SOURCE=${REPO_ORG}/${REPO_NAME} \
--build-arg SITE_NAME=${SITE_NAME} \
--build-arg SITE_HUMAN_NAME=${SITE_HUMAN_NAME} \
-f ./markdown/Dockerfile -t ${IMAGE_NAME}:${SOURCE_REF} && \
rm -rf ./markdown/source
21 changes: 0 additions & 21 deletions Pipfile

This file was deleted.

149 changes: 0 additions & 149 deletions Pipfile.lock

This file was deleted.

Loading

0 comments on commit 6f34099

Please sign in to comment.