diff --git a/build/.dockerignore b/build/.dockerignore index fcc6f4011..1b8e63535 100644 --- a/build/.dockerignore +++ b/build/.dockerignore @@ -1,2 +1,3 @@ * -!docs-watcher/start.sh \ No newline at end of file +!Gemfile +!docs-watcher/start.sh diff --git a/build/Dockerfile b/build/Dockerfile index 2a55f6c8f..2844a8498 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,6 +1,9 @@ FROM ruby:2.3.5-alpine3.4 +RUN mkdir /www + COPY docs-watcher/start.sh / +COPY Gemfile /www/ RUN apk add --update \ bash \ @@ -12,11 +15,24 @@ RUN apk add --update \ rsync \ nginx \ nodejs \ - && rm -rf /var/cache/apk/* \ - && npm config set cache /var --global \ + && rm -rf /var/cache/apk/* + +RUN npm config set cache /var --global \ && npm install -g grunt \ && mkdir /run/nginx \ - && chmod +x /start.sh + && chmod +x /start.sh \ + && echo "Symlinking folders..." \ + && ln -s /root/docs /www/docs \ + && ln -s /root/NativeScript /www/NativeScript \ + && ln -s /root/nativescript-angular /www/nativescript-angular \ + && ln -s /root/nativescript-sdk-examples-ng /www/nativescript-sdk-examples-ng \ + && ln -s /root/nativescript-sdk-examples-js /www/nativescript-sdk-examples-js \ + && ln -s /root/sidekick-docs /www/sidekick-docs \ + && ln -s /root/nativescript-cli /www/nativescript-cli + +RUN cd /www \ + && bundle install \ + && bundle config build.nokogiri --use-system-libraries ENTRYPOINT [ "/start.sh" ] diff --git a/build/Gemfile b/build/Gemfile index 364b3893f..baf26a932 100755 --- a/build/Gemfile +++ b/build/Gemfile @@ -7,3 +7,4 @@ gem 'jekyll-assets' gem 'github-markdown' gem 'html-pipeline' gem 'jekyll-unsanitize', '0.4' +gem 'commonmarker' diff --git a/build/_assets/javascripts/app.js b/build/_assets/javascripts/app.js index 7453d37c0..e864d3446 100644 --- a/build/_assets/javascripts/app.js +++ b/build/_assets/javascripts/app.js @@ -52,6 +52,22 @@ function preventParentSelection(e) { } } +function traverseAnchors(elements, level) { + var html = ""; +} + $(function(){ $("pre[lang]").each(function() { @@ -72,7 +88,7 @@ $(function(){ tabs[0].addClass("k-state-active"); - var tabstrip = $("
") + var tabstrip = $("
") .insertBefore(this) .append($("