Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ZEPPELIN-1554] Update jekyll version to 3.2.1 with its dependencies and fix document… #1577

Closed
wants to merge 1 commit into from

Conversation

yoonjs2
Copy link
Contributor

@yoonjs2 yoonjs2 commented Nov 1, 2016

What is this PR for?

  • Update outdated jekyll version of zeppelin documentation from 1.x to 3.x
  • Eliminate kramdown only warnings when serving documentation as github pages.
  • Prepare base environment for L10N related plugins for jekyll.

What type of PR is it?

Improvement | Documentation

Todos

  • [*] - Update Jekyll version to 3.x
  • [*] - Update documentation style as kramdown

What is the Jira issue?

ZEPPELIN-1554

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? Yes for documentation
  • Does this needs documentation? No

… style as kramdown.

@yoonjs2
Copy link
Contributor Author

yoonjs2 commented Nov 1, 2016

@AhyoungRyu Can I ask you to allow me to change JIRA ZEPPELIN-1554 assignee and progress? In case of self proposal and PR like this, It would be great to use JIRA as contributor access :)

@AhyoungRyu
Copy link
Contributor

@yoonjs2 Sure. And let me test this patch :)
@minahlee Could you help me add @yoonjs2 (Jira username:Jesang Yoon) to the contributor list in Jira so that he can assign himself to assignee?

@minahlee
Copy link
Member

minahlee commented Nov 2, 2016

@yoonjs2 just added your name to contributor role

@yoonjs2
Copy link
Contributor Author

yoonjs2 commented Nov 2, 2016

@AhyoungRyu @minahlee Thanks! Let me know if patch needs any change :)

@AhyoungRyu
Copy link
Contributor

@yoonjs2 Seems "Prepare L10N support on documentation" is unchecked in the PR description. Is it done now?

@yoonjs2
Copy link
Contributor Author

yoonjs2 commented Nov 2, 2016

@AhyoungRyu no, its under progress now. Should I change unchecked todo to other PR?

@AhyoungRyu
Copy link
Contributor

AhyoungRyu commented Nov 3, 2016

@yoonjs2 yes i think it would be better to handle " L10N support" in other PR since it's a bit different work with this. What do you think?

@yoonjs2
Copy link
Contributor Author

yoonjs2 commented Nov 3, 2016

@AhyoungRyu Fair enough, I'd just removed a todo (L10N support) and It will be proposed different PR.

@AhyoungRyu
Copy link
Contributor

AhyoungRyu commented Nov 4, 2016

@yoonjs2 Yeah thanks for your consideration!

I've tested this branch and found some issues.

1.

Liquid Warning: Liquid syntax error (line 77): Expected end_of_string but found open_round in "{{noteName(note)}}" in manual/notebookashomepage.md

seems it needs some markdown escaping. The line number 83 in docs/manual/notebookashomepage.md

<a style="text-decoration: none;" href="#/notebook/{{note.id}}">{{noteName(note)}}</a>

it can be fixed simply like below

<a style="text-decoration: none;" href="#/notebook/{{"{{note.id"}}}}>{{"{{noteName(note)"}}}}</a>

then the error message will be gone :)

2. As you know, the docs site will be deployed under zeppelin.apache.org/docs/0.7.0-SNAPSHOT/ not zeppelin.apache.org. So I tested in similar env like below

1) build gh-pages (website) branch
JEKYLL_ENV=production bundle exec jekyll build
cp -r _site/ /tmp/zeppelin_website/
mkdir -p /tmp/zeppelin_website/docs/0.7.0-SNAPSHOT

2) build this patch (docs) and copy it under docs/0.7.0-SNAPSHOT of website
cd docs
bundle exec jekyll build --safe
cp -r _site/ /tmp/zeppelin_website/0.7.0-SNAPSHOT/

3) start httpserver and browse http://localhost:8000/docs/0.7.0-SNAPSHOT/
cd /tmp/zeppelin_website
python -m SimpleHTTPServer

then it throws
screen shot 2016-11-04 at 11 57 34 pm

and not happened in master. And also some styles are not missing now.

Could you check them again? Please feel free to ping me if you're in trouble while testing.

@yoonjs2
Copy link
Contributor Author

yoonjs2 commented Nov 5, 2016

@AhyoungRyu OK I'll investigate and resolve them ASAP. Thanks for the review :)

@yoonjs2
Copy link
Contributor Author

yoonjs2 commented Nov 13, 2016

@AhyoungRyu I've stucked with the first step you've mentioned...
How do I workaround this error?

  1. build gh-pages (website) branch
$ git checkout gh-pages
$ JEKYLL_ENV=production 
$ bundle exec jekyll build

Configuration file: /Users/yoonjesang/Desktop/openfrontier/zeppelin/_config.yml
            Source: /Users/yoonjesang/Desktop/openfrontier/zeppelin
       Destination: /Users/yoonjesang/Desktop/openfrontier/zeppelin/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
  Liquid Exception: Could not locate the included file 'nav/announcements-4.0.html' in any of ["/Users/yoonjesang/Desktop/openfrontier/zeppelin/_includes"]. Ensure it exists in one of those directories and, if it is a symlink, does not point outside your site source. in zeppelin-web/bower_components/select2/docs/announcements-4.0.html
jekyll 3.2.1 | Error:  Could not locate the included file 'nav/announcements-4.0.html' in any of ["/Users/yoonjesang/Desktop/openfrontier/zeppelin/_includes"]. Ensure it exists in one of those directories and, if it is a symlink, does not point outside your site source.

And I found few lines of your instruction seems mistyped... Am I correct?

mkdir -p /tmp/zeppelin-website/docs/0.7.0-SNAPSHOT => mkdir -p /tmp/zeppelin_website/docs/0.7.0-SNAPSHOT

cp -r _site/ /tmp/zeppelin_website/0.7.0-SNAPSHOT/ => cp -r _site/ /tmp/zeppelin_website/docs/0.7.0-SNAPSHOT/

@AhyoungRyu
Copy link
Contributor

@yoonjs2 Yeah you're right, there is a typo. It should be one of them either zeppelin-website or zeppelin_website. I updated the comment :)

And you did like below as you said

$ JEKYLL_ENV=production 
$ bundle exec jekyll build

But it should be in one line

$ JEKYLL_ENV=production bundle exec jekyll build

@1ambda
Copy link
Member

1ambda commented May 24, 2017

Any updated?

@asfgit asfgit closed this in c38a0a0 May 9, 2018
asfgit pushed a commit that referenced this pull request May 9, 2018
close #83
close #86
close #125
close #133
close #139
close #146
close #193
close #203
close #246
close #262
close #264
close #273
close #291
close #299
close #320
close #347
close #389
close #413
close #423
close #543
close #560
close #658
close #670
close #728
close #765
close #777
close #782
close #783
close #812
close #822
close #841
close #843
close #878
close #884
close #918
close #989
close #1076
close #1135
close #1187
close #1231
close #1304
close #1316
close #1361
close #1385
close #1390
close #1414
close #1422
close #1425
close #1447
close #1458
close #1466
close #1485
close #1492
close #1495
close #1497
close #1536
close #1545
close #1561
close #1577
close #1600
close #1603
close #1678
close #1695
close #1739
close #1748
close #1765
close #1767
close #1776
close #1783
close #1799
@epugh epugh mentioned this pull request Aug 9, 2021
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants