Skip to content

Commit 4d74f06

Browse files
committedFeb 5, 2015
[SPARK-5608] Improve SEO of Spark documentation pages
- Add meta description tags on some of the most important doc pages - Shorten the titles of some pages to have more relevant keywords; for example there's no reason to have "Spark SQL Programming Guide - Spark 1.2.0 documentation", we can just say "Spark SQL - Spark 1.2.0 documentation". Author: Matei Zaharia <[email protected]> Closes apache#4381 from mateiz/docs-seo and squashes the following commits: 4940563 [Matei Zaharia] [SPARK-5608] Improve SEO of Spark documentation pages
1 parent c4b1108 commit 4d74f06

14 files changed

+31
-12
lines changed
 

‎docs/_layouts/global.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
<meta charset="utf-8">
88
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
99
<title>{{ page.title }} - Spark {{site.SPARK_VERSION_SHORT}} Documentation</title>
10-
<meta name="description" content="">
10+
{% if page.description %}
11+
<meta name="description" content="{{page.description | replace: 'SPARK_VERSION_SHORT', site.SPARK_VERSION_SHORT}}">
12+
{% endif %}
1113

1214
{% if page.redirect %}
1315
<meta http-equiv="refresh" content="0; url={{page.redirect}}">

‎docs/bagel-programming-guide.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: global
3-
title: Bagel Programming Guide
3+
displayTitle: Bagel Programming Guide
4+
title: Bagel
45
---
56

67
**Bagel will soon be superseded by [GraphX](graphx-programming-guide.html); we recommend that new users try GraphX instead.**

‎docs/configuration.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: global
3-
title: Spark Configuration
3+
displayTitle: Spark Configuration
4+
title: Configuration
45
---
56
* This will become a table of contents (this text will be scraped).
67
{:toc}

‎docs/graphx-programming-guide.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
layout: global
3-
title: GraphX Programming Guide
3+
displayTitle: GraphX Programming Guide
4+
title: GraphX
5+
description: GraphX graph processing library guide for Spark SPARK_VERSION_SHORT
46
---
57

68
* This will become a table of contents (this text will be scraped).

‎docs/index.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
layout: global
3-
title: Spark Overview
3+
displayTitle: Spark Overview
4+
title: Overview
5+
description: Apache Spark SPARK_VERSION_SHORT documentation homepage
46
---
57

68
Apache Spark is a fast and general-purpose cluster computing system.

‎docs/mllib-decision-tree.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: global
3-
title: Decision Tree - MLlib
4-
displayTitle: <a href="mllib-guide.html">MLlib</a> - Decision Tree
3+
title: Decision Trees - MLlib
4+
displayTitle: <a href="mllib-guide.html">MLlib</a> - Decision Trees
55
---
66

77
* Table of contents

‎docs/mllib-guide.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
layout: global
3-
title: Machine Learning Library (MLlib) Programming Guide
3+
title: MLlib
4+
displayTitle: Machine Learning Library (MLlib) Guide
5+
description: MLlib machine learning library overview for Spark SPARK_VERSION_SHORT
46
---
57

68
MLlib is Spark's scalable machine learning library consisting of common learning algorithms and utilities,

‎docs/monitoring.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: global
33
title: Monitoring and Instrumentation
4+
description: Monitoring, metrics, and instrumentation guide for Spark SPARK_VERSION_SHORT
45
---
56

67
There are several ways to monitor Spark applications: web UIs, metrics, and external instrumentation.

‎docs/programming-guide.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: global
33
title: Spark Programming Guide
4+
description: Spark SPARK_VERSION_SHORT programming guide in Java, Scala and Python
45
---
56

67
* This will become a table of contents (this text will be scraped).

‎docs/quick-start.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: global
33
title: Quick Start
4+
description: Quick start tutorial for Spark SPARK_VERSION_SHORT
45
---
56

67
* This will become a table of contents (this text will be scraped).

‎docs/security.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: global
3-
title: Spark Security
3+
displayTitle: Spark Security
4+
title: Security
45
---
56

67
Spark currently supports authentication via a shared secret. Authentication can be configured to be on via the `spark.authenticate` configuration parameter. This parameter controls whether the Spark communication protocols do authentication using the shared secret. This authentication is a basic handshake to make sure both sides have the same shared secret and are allowed to communicate. If the shared secret is not identical they will not be allowed to communicate. The shared secret is created as follows:

‎docs/sql-programming-guide.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: global
3-
title: Spark SQL Programming Guide
3+
displayTitle: Spark SQL Programming Guide
4+
title: Spark SQL
45
---
56

67
* This will become a table of contents (this text will be scraped).

‎docs/streaming-programming-guide.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
layout: global
3-
title: Spark Streaming Programming Guide
3+
displayTitle: Spark Streaming Programming Guide
4+
title: Spark Streaming
5+
description: Spark Streaming programming guide and tutorial for Spark SPARK_VERSION_SHORT
46
---
57

68
* This will become a table of contents (this text will be scraped).

‎docs/tuning.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
layout: global
3-
title: Tuning Spark
3+
displayTitle: Tuning Spark
4+
title: Tuning
5+
description: Tuning and performance optimization guide for Spark SPARK_VERSION_SHORT
46
---
57

68
* This will become a table of contents (this text will be scraped).

0 commit comments

Comments
 (0)
Please sign in to comment.