mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
### What is this PR for? The current command for running the website is not functioning correctly. Fixing this issue will enable developers to verify that the changes made to the documentation files are properly reflected on the website. ### What type of PR is it? Bug Fix ### Todos * [ ] - Task ### What is the Jira issue? * Open an issue on Jira https://issues.apache.org/jira/browse/ZEPPELIN/6112 * Put link here, and add [ZEPPELIN-*Jira number*] in PR title, eg. [ZEPPELIN-533] ### How should this be tested? Run the website server using the following command and check if the site is served at http://localhost:4000: ```bash docker run --rm -it \ -v $PWD:/docs \ -w /docs \ -p '4000:4000' \ ruby:3.3.5 \ bash -c "bundle install && bundle exec jekyll serve --watch --host 0.0.0.0" ``` ### Questions: * Does the license files need to update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Closes #4850 from tbonelee/fix-docs. Signed-off-by: Cheng Pan <chengpan@apache.org>
22 lines
805 B
Text
22 lines
805 B
Text
{% capture jbcache %}
|
|
<!--
|
|
- Dynamically set liquid variables for working with URLs/paths
|
|
-->
|
|
{% if site.JB.setup.provider == "custom" %}
|
|
{% include custom/setup %}
|
|
{% else %}
|
|
{% if site.safe and site.JB.BASE_PATH and site.JB.BASE_PATH != '' %}
|
|
{% assign BASE_PATH = site.JB.BASE_PATH %}
|
|
{% assign HOME_PATH = site.JB.BASE_PATH %}
|
|
{% else %}
|
|
{% assign BASE_PATH = nil %}
|
|
{% assign HOME_PATH = "/" %}
|
|
{% endif %}
|
|
|
|
{% if site.JB.ASSET_PATH %}
|
|
{% assign ASSET_PATH = site.JB.ASSET_PATH %}
|
|
{% else %}
|
|
{% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{% if page.theme.name %}{{ page.theme.name }}{% else if %}{{ layout.theme.name }}{% endif %}{% endcapture %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endcapture %}{% assign jbcache = nil %}
|