Skip to content

Commit 1a34e63

Browse files
committed
[ZEPPELIN-6432] Preserve Markdown rendering under Kramdown
1 parent 0c0c094 commit 1a34e63

39 files changed

Lines changed: 428 additions & 420 deletions

‎docs/check_external_resources.rb‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,18 @@ def asf_host?(host)
4343

4444
violations = []
4545

46-
Dir.glob(File.join(SITE_DIR, "**", "*.html")).sort.each do |file|
46+
unless Dir.exist?(SITE_DIR)
47+
warn "Site directory not found: #{SITE_DIR}"
48+
exit 1
49+
end
50+
51+
html_files = Dir.glob(File.join(SITE_DIR, "**", "*.html")).sort
52+
if html_files.empty?
53+
warn "No HTML files found in #{SITE_DIR}"
54+
exit 1
55+
end
56+
57+
html_files.each do |file|
4758
File.read(file).scan(RESOURCE_PATTERN) do |tag, value|
4859
host = remote_host(value)
4960
next if host.nil? || asf_host?(host)

‎docs/development/contribution/how_to_contribute_code.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,6 @@ You can find issues for <a href="https://issues.apache.org/jira/browse/ZEPPELIN-
159159
## Stay involved
160160
Contributors should join the Zeppelin mailing lists.
161161

162-
* [dev@zeppelin.apache.org](http://mail-archives.apache.org/mod_mbox/zeppelin-dev/) is for people who want to contribute code to Zeppelin. [subscribe](mailto:dev-subscribe@zeppelin.apache.org?subject=send this email to subscribe), [unsubscribe](mailto:dev-unsubscribe@zeppelin.apache.org?subject=send this email to unsubscribe), [archives](http://mail-archives.apache.org/mod_mbox/zeppelin-dev/)
162+
* [dev@zeppelin.apache.org](http://mail-archives.apache.org/mod_mbox/zeppelin-dev/) is for people who want to contribute code to Zeppelin. [subscribe](mailto:dev-subscribe@zeppelin.apache.org?subject=send%20this%20email%20to%20subscribe), [unsubscribe](mailto:dev-unsubscribe@zeppelin.apache.org?subject=send%20this%20email%20to%20unsubscribe), [archives](http://mail-archives.apache.org/mod_mbox/zeppelin-dev/)
163163

164164
If you have any issues, create a ticket in [JIRA](https://issues.apache.org/jira/browse/ZEPPELIN).

‎docs/development/contribution/how_to_contribute_website.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ You can directly edit `.md` files in `/docs/` directory at the web interface of
6767
## Stay involved
6868
Contributors should join the Zeppelin mailing lists.
6969

70-
* [dev@zeppelin.apache.org](http://mail-archives.apache.org/mod_mbox/zeppelin-dev/) is for people who want to contribute code to Zeppelin. [subscribe](mailto:dev-subscribe@zeppelin.apache.org?subject=send this email to subscribe), [unsubscribe](mailto:dev-unsubscribe@zeppelin.apache.org?subject=send this email to unsubscribe), [archives](http://mail-archives.apache.org/mod_mbox/zeppelin-dev/)
70+
* [dev@zeppelin.apache.org](http://mail-archives.apache.org/mod_mbox/zeppelin-dev/) is for people who want to contribute code to Zeppelin. [subscribe](mailto:dev-subscribe@zeppelin.apache.org?subject=send%20this%20email%20to%20subscribe), [unsubscribe](mailto:dev-unsubscribe@zeppelin.apache.org?subject=send%20this%20email%20to%20unsubscribe), [archives](http://mail-archives.apache.org/mod_mbox/zeppelin-dev/)
7171

7272
If you have any issues, create a ticket in [JIRA](https://issues.apache.org/jira/browse/ZEPPELIN).

‎docs/development/helium/writing_visualization_transformation.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ Here is an example.
201201
|`widget` | `checkbox` | Use [checkbox](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox) widget. |
202202
|`widget` | `textarea` | Use [textarea](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea) widget. |
203203
|`widget` | `option` | Use [select + option](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select) widget. This parameter should have `optionValues` field as well. |
204-
|`optionValues` | (Array<string>) | Available option values used with the `option` widget |
204+
|`optionValues` | (Array&lt;string&gt;) | Available option values used with the `option` widget |
205205
206206
<br/>
207207
@@ -278,4 +278,3 @@ class AwesomeVisualization extends Visualization {
278278
...
279279
}
280280
```
281-

‎docs/development/writing_zeppelin_interpreter.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ To check out the list of languages supported, see the `mode-*.js` files under `z
159159

160160
If you want to add a new set of syntax highlighting,
161161

162-
1. Add the `mode-*.js` file to <code>[zeppelin-web/bower.json](https://github.com/apache/zeppelin/blob/master/zeppelin-web/bower.json)</code> (when built, <code>[zeppelin-web/src/index.html](https://github.com/apache/zeppelin/blob/master/zeppelin-web/src/index.html)</code> will be changed automatically).
162+
1. Add the `mode-*.js` file to [`zeppelin-web/bower.json`](https://github.com/apache/zeppelin/blob/master/zeppelin-web/bower.json) (when built, [`zeppelin-web/src/index.html`](https://github.com/apache/zeppelin/blob/master/zeppelin-web/src/index.html) will be changed automatically).
163163
2. Add `language` field to `editor` object. Note that if you don't specify language field, your interpreter will use plain text mode for syntax highlighting. Let's say you want to set your language to `java`, then add:
164164

165165
```json

‎docs/index.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ limitations under the License.
2121
<div class="row" style="margin-top: 0px;">
2222
<div class="col-sm-6 col-md-6" style="padding-right:0;">
2323
<h1 style="color:#4c555a; margin-top: 0px;">What is Apache Zeppelin?</h1>
24-
<p style="margin-bottom: 0px; margin-top: 20px; font-size: 18px; font-style="font-family: "Roboto", sans-serif;">
24+
<p style="margin-bottom: 0px; margin-top: 20px; font-size: 18px; font-family: Roboto, sans-serif;">
2525
Multi-purpose notebook which supports
2626
</p>
27-
<p style="font-size: 18px; font-style="font-family: "Roboto", sans-serif;">
27+
<p style="font-size: 18px; font-family: Roboto, sans-serif;">
2828
20+ language backends
2929
</p>
3030
<ul style="list-style-type: none; padding-left:10px; margin-top: 30px;" >
@@ -161,4 +161,3 @@ limitations under the License.
161161
* [Mailing List](https://zeppelin.apache.org/community.html)
162162
* [Apache Zeppelin Wiki](https://cwiki.apache.org/confluence/display/ZEPPELIN/Zeppelin+Home)
163163
* [Stackoverflow Questions about Zeppelin (tag: `apache-zeppelin`)](http://stackoverflow.com/questions/tagged/apache-zeppelin)
164-

‎docs/interpreter/bigquery.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ limitations under the License.
5151
<tr>
5252
<td>zeppelin.bigquery.sql_dialect</td>
5353
<td></td>
54-
<td>BigQuery SQL dialect (standardSQL or legacySQL). If empty, [query prefix](https://cloud.google.com/bigquery/docs/reference/standard-sql/enabling-standard-sql#sql-prefix) like '#standardSQL' can be used.</td>
54+
<td markdown="span">BigQuery SQL dialect (standardSQL or legacySQL). If empty, [query prefix](https://cloud.google.com/bigquery/docs/reference/standard-sql/enabling-standard-sql#sql-prefix) like '#standardSQL' can be used.</td>
5555
</tr>
5656
<tr>
5757
<td>zeppelin.bigquery.region</td>

0 commit comments

Comments
 (0)