提交 57314e57 编写于 作者: M Matteo Merli 提交者: GitHub

Updated download links to Apache mirrors and prepared for multiple versions docs (#660)

上级 de24aaf1
...@@ -20,6 +20,5 @@ ...@@ -20,6 +20,5 @@
destination: generated destination: generated
livereload: true livereload: true
baseurl: "/" baseurl: "/"
current_version: 1.18
include: include:
- docs/example.md - docs/example.md
...@@ -25,9 +25,8 @@ pulsar_repo: https://github.com/apache/incubator-pulsar/tree/master ...@@ -25,9 +25,8 @@ pulsar_repo: https://github.com/apache/incubator-pulsar/tree/master
baseurl: / baseurl: /
destination: ../generated-site/content destination: ../generated-site/content
versions: current_version: 1.19.0-incubating
- 1.18 archived_releases:
latest: 1.18
markdown: kramdown markdown: kramdown
kramdown: kramdown:
......
{% capture binary_release_url %}https://github.com/apache/incubator-pulsar/releases/download/v{{ site.current_version }}/pulsar-{{ site.current_version }}-bin.tar.gz{% endcapture %}
{% capture source_release_url %}https://github.com/apache/incubator-pulsar/releases/download/v{{ site.current_version }}/pulsar-{{ site.current_version }}-src.tar.gz{% endcapture %} {% capture binary_release_url %}http://www.apache.org/dyn/closer.cgi/incubator/pulsar/pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-bin.tar.gz{% endcapture %}
{% capture source_release_url %}http://www.apache.org/dyn/closer.cgi/incubator/pulsar/pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-src.tar.gz{% endcapture %}
## System requirements ## System requirements
...@@ -20,22 +21,22 @@ To get started running Pulsar, download a binary tarball release in one of the f ...@@ -20,22 +21,22 @@ To get started running Pulsar, download a binary tarball release in one of the f
```shell ```shell
# Source release # Source release
$ wget {{ source_release_url }} $ wget http://archive.apache.org/dist/incubator/pulsar/pulsar-{{site.current_version}}/apache-pulsar-{{site.current_version}}-src.tar.gz
# Binary release # Binary release
$ wget {{ binary_release_url }} $ wget http://archive.apache.org/dist/incubator/pulsar/pulsar-{{site.current_version}}/apache-pulsar-{{site.current_version}}-bin.tar.gz
``` ```
Once the tarball is downloaded, untar it and `cd` into the resulting directory: Once the tarball is downloaded, untar it and `cd` into the resulting directory:
```bash ```bash
# Source release # Source release
$ tar xvf pulsar-{{ site.latest }}-bin.tar.gz $ tar xvfz pulsar-{{ site.current_version }}-src.tar.gz
$ cd pulsar-{{ site.latest }} $ cd pulsar-{{ site.current_version }}
# Binary release # Binary release
$ tar xvf pulsar-{{ site.latest }}-src.tar.gz $ tar xvfz apache-pulsar-{{ site.current_version }}-bin.tar.gz
$ cd pulsar-{{ site.latest }} $ cd pulsar-{{ site.current_version }}
``` ```
## What your package contains ## What your package contains
...@@ -60,4 +61,4 @@ To compile, skipping the tests: ...@@ -60,4 +61,4 @@ To compile, skipping the tests:
```shell ```shell
$ mvn install -DskipTests $ mvn install -DskipTests
``` ```
\ No newline at end of file
...@@ -31,8 +31,26 @@ ...@@ -31,8 +31,26 @@
<div class="collapse navbar-collapse justify-content-end" id="navbarNavDropdown"> <div class="collapse navbar-collapse justify-content-end" id="navbarNavDropdown">
<ul class="navbar-nav"> <ul class="navbar-nav">
<li class="nav-item"> <li class="nav-item dropdown">
<a class="nav-link" href="/docs/latest/getting-started/LocalCluster">Documentation</a> <a class="nav-link dropdown-toggle" href="#" id="clientLibsDropdown" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">Documentation</a>
<div class="dropdown-menu" aria-labelledby="documentationDropdown">
<a class="dropdown-item" href="/docs/latest/getting-started/LocalCluster">Latest</a>
<div class="dropdown-divider"></div>
<h3 class="dropdown-header">Stable release</h3>
<a class="dropdown-item" href="/docs/v{{site.current_version}}/getting-started/LocalCluster">{{site.current_version}}</a>
{% if site.archived_releases %}
<div class="dropdown-divider"></div>
<h3 class="dropdown-header">Other releases</h3>
{% for version in site.archived_releases %}
<a class="dropdown-item" href="/docs/v{{version}}/getting-started/LocalCluster">{{version}}</a>
{% endfor %}
{% endif %}
</div>
</li> </li>
<li class="nav-item"> <li class="nav-item">
......
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<ul>
{% for version in site.versions %}
<li><a href="/docs/{{ version }}">{{ version }}</a></li>
{% endfor %}
</ul>
...@@ -18,4 +18,3 @@ ...@@ -18,4 +18,3 @@
# #
data_dir: _data data_dir: _data
current_version: latest
\ No newline at end of file
--- ---
title: Apache Pulsar downloads title: Apache Pulsar downloads
layout: docs layout: content
toc_disable: true
--- ---
{% include admonition.html type="success" title='Notice' content="
The current release was done prior to entering the Apache Incubator, so
it's still relative to 'Yahoo Pulsar' rather than 'Apache Pulsar'" %}
Download Pulsar from the [releases page](https://github.com/apache/incubator-pulsar/releases) on GitHub or here: Download Pulsar from the [releases page](https://github.com/apache/incubator-pulsar/releases) on GitHub or here:
{% for version in site.versions %} ### Version {{ site.current_version }}
### Version {{ version }}{% if version == site.current_version %} (latest){% endif %}
| Type | Link | | Type | Link |
|:-------|:-----------------------------------------------------------------------------------------------------------------------------------------------| |:-------|:-----------------------------------------------------------------------------------------------------------------------------------------------|
| Source | [pulsar-{{ version }}-src.tar.gz](https://github.com/apache/incubator-pulsar/releases/download/v{{ version }}/pulsar-{{ version }}-src.tar.gz) | | Source | [apache-pulsar-{{ site.current_version }}-src.tar.gz](http://www.apache.org/dyn/closer.cgi/incubator/pulsar/pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-src.tar.gz) |
| Binary | [pulsar-{{ version }}-bin.tar.gz](https://github.com/apache/incubator-pulsar/releases/download/v{{ version }}/pulsar-{{ version }}-bin.tar.gz) | | Binary | [apache-pulsar-{{ site.current_version }}-bin.tar.gz](http://www.apache.org/dyn/closer.cgi/incubator/pulsar/pulsar-{{ site.current_version }}/apache-pulsar-{{ site.current_version }}-bin.tar.gz) |
{% endfor %}
### Release notes ### Release notes
{% for version in site.versions %} [https://github.com/apache/incubator-pulsar/releases/tag/v{{site.current_version}}](https://github.com/apache/incubator-pulsar/releases/tag/v{{site.current_version}})
* [Pulsar version {{version}}{% if version == site.current_version %} (latest){% endif %}](https://github.com/apache/incubator-pulsar/releases/tag/v{{ version }})
{% endfor %}
### Getting started ### Getting started
Once you've downloaded a Pulsar release, instructions on getting up and running with a {% popover standalone %} cluster that you can run your laptop can be found in [Run Pulsar locally](../docs/{{ site.current_version }}/getting-started/LocalCluster). Once you've downloaded a Pulsar release, instructions on getting up and running with a {% popover standalone %} cluster that you can run your laptop can be found in [Run Pulsar locally](/docs/latest/getting-started/LocalCluster).
If you need to connect to an existing Pulsar {% popover cluster %} or {% popover instance %} using an officially supported client, see client docs for these languages: If you need to connect to an existing Pulsar {% popover cluster %} or {% popover instance %} using an officially supported client, see client docs for these languages:
...@@ -36,3 +28,16 @@ Client guide | API docs ...@@ -36,3 +28,16 @@ Client guide | API docs
[The Pulsar Java client](../docs/latest/clients/Java) | [Java client Javadoc](../api/client)<br />[Java admin interface Javadoc](../api/admin) [The Pulsar Java client](../docs/latest/clients/Java) | [Java client Javadoc](../api/client)<br />[Java admin interface Javadoc](../api/admin)
[The Pulsar Python client](../docs/latest/clients/Python) | [pdoc](../api/python) [The Pulsar Python client](../docs/latest/clients/Python) | [pdoc](../api/python)
[The Pulsar C++ client](../docs/latest/clients/Cpp) | [Doxygen docs](../api/cpp) [The Pulsar C++ client](../docs/latest/clients/Cpp) | [Doxygen docs](../api/cpp)
{% if site.archived_releases %}
### Other releases
| Release | Download | Release notes |
|:-------|:--------------------------------------------|--------------------------------------------|
{% for version in site.archived_releases
%} {{version}} | [http://archive.apache.org/dist/incubator/pulsar/pulsar-{{version}}](http://archive.apache.org/dist/incubator/pulsar/pulsar-{{version}}) | [Release notes v{{version}}](https://github.com/apache/incubator-pulsar/releases/tag/v{{ version }})|
{% endfor %}
{% endif %}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册