Skip to content

Commit

Permalink
doc: remove all hard coded version numbers to simplify release (#2786)
Browse files Browse the repository at this point in the history
baby pr for #2779
  • Loading branch information
monperrus authored and surli committed Dec 4, 2018
1 parent 3c43daf commit 9219db0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 40 deletions.
38 changes: 2 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,7 @@ If you use Spoon for academic purposes, please cite: Renaud Pawlak, Martin Monpe

## Getting started in 2 seconds

Get latest stable version with Maven:
```xml
<dependency>
<groupId>fr.inria.gforge.spoon</groupId>
<artifactId>spoon-core</artifactId>
<version>7.1.0</version>
</dependency>
```
Get latest stable version with Maven, see <https://search.maven.org/artifact/fr.inria.gforge.spoon/spoon-core>

And start using it:

Expand Down Expand Up @@ -83,34 +76,7 @@ mvn test

### Download

Stable version:

```xml
<dependency>
<groupId>fr.inria.gforge.spoon</groupId>
<artifactId>spoon-core</artifactId>
<version>7.1.0</version>
</dependency>
```

Snapshot version:

```xml
<dependencies>
<dependency>
<groupId>fr.inria.gforge.spoon</groupId>
<artifactId>spoon-core</artifactId>
<version>7.2.0-SNAPSHOT</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>maven.inria.fr-snapshot</id>
<name>Maven Repository for Spoon Snapshots</name>
<url>http://maven.inria.fr/artifactory/spoon-public-snapshot</url>
</repository>
</repositories>
```
The download information is at <http://spoon.gforge.inria.fr/>.

### Eclipse IDE Setup

Expand Down
13 changes: 10 additions & 3 deletions doc/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ include: [_includes]
# variables

sidebar_tagline: Spoon
sidebar_version: version 7.0.0
spoon_release: "7.1.0"
spoon_snapshot: "7.2.0-SNAPSHOT"

# this is replaced at deployment time by job https://ci.inria.fr/sos/job/Website Deployer/
# LATESTVERSION=`curl -s "http://search.maven.org/solrsearch/select?q=g:%22fr.inria.gforge.spoon%22+AND+a:%22spoon-core%22" | jq .response.docs[0].latestVersion`
# sed -i -e "s/^spoon_release: .*/spoon_release: $LATESTVERSION/" _config.yml
spoon_release: "TO_BE_REPLACED"

# this is replaced at deployment time by job https://ci.inria.fr/sos/job/Website Deployer/
# SNAPSHOTVERSION=`xmlstarlet sel -t -v /_:project/_:version ../pom.xml`
# sed -i -e "s/^spoon_snapshot: .*/spoon_snapshot: \"$SNAPSHOTVERSION\"/" _config.yml
spoon_snapshot: "TO_BE_REPLACED"

exclude:
- _site
Expand Down
1 change: 0 additions & 1 deletion doc/_includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
<ul id="mysidebar" class="nav">

<div class="siteTagline">{{site.sidebar_tagline}}</div>
<div class="versionTagline">{{site.sidebar_version}}</div>

{% for entry in sidebar %}
{% for subcategory in entry.subcategories %}
Expand Down

0 comments on commit 9219db0

Please sign in to comment.