Skip to content
Browse files

Add downloadable flag and some changes in projects.yml

  • Loading branch information...
1 parent b9082af commit 20bee3e903c5c31e4a9ff195016ba22251c2a7bc @beberlei beberlei committed Mar 24, 2013
Showing with 90 additions and 24 deletions.
  1. +8 −1 README.md
  2. +5 −0 bin/build-projects.php
  3. +1 −1 pages/source/_exts/doctrinedownloads.py
  4. +1 −1 pages/source/index.rst
  5. +64 −20 pages/source/projects.yml
  6. +11 −1 projects.yml
View
9 README.md
@@ -1,4 +1,11 @@
# Doctrine-Project.org Website
We built our complete website with Sphinx, which includes some sophisticated plugins that generate
-project details and hooks into Github.
+project details and hooks into Github.
+
+## Process
+
+### bin/build-project.php
+
+Transforms the ``project.yml`` into ``pages/source/project.yml`` and enhances it with Github
+release data that is necessary for the Sphinx extensions.
View
5 bin/build-projects.php
@@ -24,6 +24,11 @@
});
foreach ($projectData['versions'] as $version => $versionData) {
+ // default 'downloadable' to true
+ if ( !isset($projects[$projectName]['versions'][$version]['downloadable'])) {
+ $projects[$projectName]['versions'][$version]['downloadable'] = true;
+ }
+
$projects[$projectName]['versions'][$version]['releases'] = array();
foreach ($tagData as $tag) {
if (strpos($tag['name'], $version) === 0) {
View
2 pages/source/_exts/doctrinedownloads.py
@@ -107,7 +107,7 @@ def visit_doctrinedownloads_html(self, node):
self.body.append('<ul class="release">');
- if 'package_name' in releasedata:
+ if 'package_name' in releasedata and versiondata['downloadable']:
self.body.append('<li><a href="http://www.doctrine-project.org/downloads/%s">Download Archive</a></li>' % (releasedata['package_name']))
if 'pear_install_command' in releasedata:
View
2 pages/source/index.rst
@@ -29,4 +29,4 @@ Doctrine Projects
.. doctrine-projects::
:file: projects.yml
- :type: short
+ :type: top
View
84 pages/source/projects.yml
@@ -9,11 +9,12 @@ ormold:
latest_version: '1.2'
is_primary: false
issues_link: 'http://www.doctrine-project.org/jira/browse/DC'
- browse_source_link: 'http://github.com/doctrine/doctrine1'
+ browse_source_link: 'https://github.com/doctrine/doctrine1'
versions:
'1.2':
stability: stable
composer: false
+ downloadable: true
releases:
1.2.3:
package_name: Doctrine-1.2.3.tgz
@@ -41,12 +42,13 @@ orm:
latest_version: '2.3'
is_primary: true
issues_link: 'http://www.doctrine-project.org/jira/browse/DDC'
- browse_source_link: 'http://github.com/doctrine/doctrine2'
+ browse_source_link: 'https://github.com/doctrine/doctrine2'
versions:
'2.0':
upgrade_file: 'https://github.com/doctrine/doctrine2/blob/master/UPGRADE.md#update-from-20-beta3-to-20-beta4'
stability: stable
composer: false
+ downloadable: true
releases:
2.0.0-BETA1:
package_name: DoctrineORM-2.0.0-BETA1-full.tar.gz
@@ -122,6 +124,7 @@ orm:
upgrade_file: 'https://github.com/doctrine/doctrine2/blob/master/UPGRADE.md#upgrade-to-21'
stability: stable
composer: false
+ downloadable: true
releases:
2.1.0BETA1:
package_name: DoctrineORM-2.1.0BETA1-full.tar.gz
@@ -186,6 +189,7 @@ orm:
'2.2':
upgrade_file: 'https://github.com/doctrine/doctrine2/blob/master/UPGRADE.md#upgrade-to-22'
stability: stable
+ downloadable: true
releases:
2.2.0-BETA1:
package_name: DoctrineORM-2.2.0-BETA1-full.tar.gz
@@ -225,6 +229,7 @@ orm:
'2.3':
stability: stable
upgrade_file: 'https://github.com/doctrine/doctrine2/blob/master/UPGRADE.md#upgrade-to-23'
+ downloadable: true
releases:
2.3.0-BETA1:
package_name: DoctrineORM-2.3.0-BETA1-full.tar.gz
@@ -266,6 +271,10 @@ orm:
git_checkout_command: '$ git clone git://github.com/doctrine/doctrine2.git orm<br>$ cd orm<br>$ git checkout 2.3.2'
pear_install_command: '$ pear channel-discover pear.doctrine-project.org<br>pear install doctrine/DoctrineORM-2.3.2'
composer: true
+ '2.4':
+ downloadable: false
+ stability: beta
+ releases: { }
dbal:
slug: dbal
repository: dbal
@@ -277,11 +286,12 @@ dbal:
latest_version: '2.3'
is_primary: true
issues_link: 'http://www.doctrine-project.org/jira/browse/DBAL'
- browse_source_link: 'http://github.com/doctrine/dbal'
+ browse_source_link: 'https://github.com/doctrine/dbal'
versions:
'2.0':
stability: stable
composer: false
+ downloadable: true
releases:
2.0-standalone-init:
package_name: DoctrineDBAL-2.0-standalone-init-full.tar.gz
@@ -386,6 +396,7 @@ dbal:
'2.1':
stability: stable
composer: false
+ downloadable: true
releases:
2.1.0RC1:
package_name: DoctrineDBAL-2.1.0RC1-full.tar.gz
@@ -434,6 +445,7 @@ dbal:
composer: true
'2.2':
stability: stable
+ downloadable: true
releases:
2.2.0-BETA2:
package_name: DoctrineDBAL-2.2.0-BETA2-full.tar.gz
@@ -477,6 +489,7 @@ dbal:
composer: true
'2.3':
stability: stable
+ downloadable: true
releases:
2.3.0-BETA1:
package_name: DoctrineDBAL-2.3.0-BETA1-full.tar.gz
@@ -518,6 +531,10 @@ dbal:
git_checkout_command: '$ git clone git://github.com/doctrine/dbal.git dbal<br>$ cd dbal<br>$ git checkout 2.3.2'
pear_install_command: '$ pear channel-discover pear.doctrine-project.org<br>pear install doctrine/DoctrineDBAL-2.3.2'
composer: true
+ '2.4':
+ downloadable: false
+ stability: beta
+ releases: { }
mongodb_odm:
slug: mongodb-odm
package: DoctrineMongoDBODM
@@ -527,33 +544,34 @@ mongodb_odm:
short_title: MongoDBODM
description: 'Doctrine MongoDB Object Document Mapper is built for PHP 5.3.2+ and provides transparent persistence for PHP objects.'
latest_version: '1.0'
- is_primary: false
+ is_primary: true
issues_link: 'http://www.doctrine-project.org/jira/browse/MODM'
- browse_source_link: 'http://github.com/doctrine/mongodb-odm'
+ browse_source_link: 'https://github.com/doctrine/mongodb-odm'
versions:
'1.0':
stability: beta
+ downloadable: true
releases:
- 1.0.0ALPHA1:
- package_name: DoctrineMongoDBODM-1.0.0ALPHA1.tgz
- git_checkout_command: '$ git clone git://github.com/doctrine/mongodb-odm.git mongodb-odm<br>$ cd mongodb-odm<br>$ git checkout 1.0.0ALPHA1'
- pear_install_command: '$ pear channel-discover pear.doctrine-project.org<br>pear install doctrine/DoctrineMongoDBODM-1.0.0ALPHA1'
- composer: true
1.0.0BETA1:
package_name: DoctrineMongoDBODM-1.0.0BETA1.tgz
git_checkout_command: '$ git clone git://github.com/doctrine/mongodb-odm.git mongodb-odm<br>$ cd mongodb-odm<br>$ git checkout 1.0.0BETA1'
pear_install_command: '$ pear channel-discover pear.doctrine-project.org<br>pear install doctrine/DoctrineMongoDBODM-1.0.0BETA1'
composer: true
- 1.0.0ALPHA2:
- package_name: DoctrineMongoDBODM-1.0.0ALPHA2.tgz
- git_checkout_command: '$ git clone git://github.com/doctrine/mongodb-odm.git mongodb-odm<br>$ cd mongodb-odm<br>$ git checkout 1.0.0ALPHA2'
- pear_install_command: '$ pear channel-discover pear.doctrine-project.org<br>pear install doctrine/DoctrineMongoDBODM-1.0.0ALPHA2'
+ 1.0.0ALPHA1:
+ package_name: DoctrineMongoDBODM-1.0.0ALPHA1.tgz
+ git_checkout_command: '$ git clone git://github.com/doctrine/mongodb-odm.git mongodb-odm<br>$ cd mongodb-odm<br>$ git checkout 1.0.0ALPHA1'
+ pear_install_command: '$ pear channel-discover pear.doctrine-project.org<br>pear install doctrine/DoctrineMongoDBODM-1.0.0ALPHA1'
composer: true
1.0.0BETA2:
package_name: DoctrineMongoDBODM-1.0.0BETA2.tgz
git_checkout_command: '$ git clone git://github.com/doctrine/mongodb-odm.git mongodb-odm<br>$ cd mongodb-odm<br>$ git checkout 1.0.0BETA2'
pear_install_command: '$ pear channel-discover pear.doctrine-project.org<br>pear install doctrine/DoctrineMongoDBODM-1.0.0BETA2'
composer: true
+ 1.0.0ALPHA2:
+ package_name: DoctrineMongoDBODM-1.0.0ALPHA2.tgz
+ git_checkout_command: '$ git clone git://github.com/doctrine/mongodb-odm.git mongodb-odm<br>$ cd mongodb-odm<br>$ git checkout 1.0.0ALPHA2'
+ pear_install_command: '$ pear channel-discover pear.doctrine-project.org<br>pear install doctrine/DoctrineMongoDBODM-1.0.0ALPHA2'
+ composer: true
1.0.0BETA3:
package_name: DoctrineMongoDBODM-1.0.0BETA3.tgz
git_checkout_command: '$ git clone git://github.com/doctrine/mongodb-odm.git mongodb-odm<br>$ cd mongodb-odm<br>$ git checkout 1.0.0BETA3'
@@ -579,6 +597,11 @@ mongodb_odm:
git_checkout_command: '$ git clone git://github.com/doctrine/mongodb-odm.git mongodb-odm<br>$ cd mongodb-odm<br>$ git checkout 1.0.0-BETA7'
pear_install_command: '$ pear channel-discover pear.doctrine-project.org<br>pear install doctrine/DoctrineMongoDBODM-1.0.0-BETA7'
composer: true
+ 1.0.0-BETA8:
+ package_name: DoctrineMongoDBODM-1.0.0-BETA8.tgz
+ git_checkout_command: '$ git clone git://github.com/doctrine/mongodb-odm.git mongodb-odm<br>$ cd mongodb-odm<br>$ git checkout 1.0.0-BETA8'
+ pear_install_command: '$ pear channel-discover pear.doctrine-project.org<br>pear install doctrine/DoctrineMongoDBODM-1.0.0-BETA8'
+ composer: true
couchdb_odm:
slug: couchdb-odm
package: CouchDBODM
@@ -590,10 +613,11 @@ couchdb_odm:
latest_version: '1.0'
is_primary: false
issues_link: 'http://www.doctrine-project.org/jira/browse/CODM'
- browse_source_link: 'http://github.com/doctrine/couchdb-odm'
+ browse_source_link: 'https://github.com/doctrine/couchdb-odm'
versions:
'1.0':
stability: alpha
+ downloadable: true
releases:
1.0.0ALPHA2:
package_name: CouchDBODM-1.0.0ALPHA2.tgz
@@ -616,7 +640,7 @@ phpcr_odm:
is_primary: false
namespace: Doctrine\ODM\PHPCR
issues_link: 'http://www.doctrine-project.org/jira/browse/PHPCR'
- browse_source_link: 'http://github.com/doctrine/phpcr-odm'
+ browse_source_link: 'https://github.com/doctrine/phpcr-odm'
versions:
'1.0':
stability: alpha
@@ -631,10 +655,11 @@ migrations:
is_primary: false
namespace: Doctrine\DBAL\Migrations
issues_link: 'http://www.doctrine-project.org/jira/browse/DMIG'
- browse_source_link: 'http://github.com/doctrine/migrations'
+ browse_source_link: 'https://github.com/doctrine/migrations'
versions:
'2.0':
stability: alpha
+ downloadable: true
releases: { }
common:
slug: common
@@ -647,11 +672,12 @@ common:
latest_version: '2.3'
is_primary: false
issues_link: 'http://www.doctrine-project.org/jira/browse/DCOM'
- browse_source_link: 'http://github.com/doctrine/common'
+ browse_source_link: 'https://github.com/doctrine/common'
versions:
'2.0':
stability: stable
composer: false
+ downloadable: true
releases:
2.0-standalone-init:
package_name: DoctrineCommon-2.0-standalone-init-full.tar.gz
@@ -706,6 +732,7 @@ common:
'2.1':
stability: stable
composer: false
+ downloadable: true
releases:
2.1.0-BETA1:
package_name: DoctrineCommon-2.1.0-BETA1-full.tar.gz
@@ -754,6 +781,7 @@ common:
composer: true
'2.2':
stability: stable
+ downloadable: true
releases:
2.2.0BETA1:
package_name: DoctrineCommon-2.2.0BETA1-full.tar.gz
@@ -812,6 +840,7 @@ common:
composer: true
'2.3':
stability: stable
+ downloadable: true
releases:
2.3.0-BETA1:
package_name: DoctrineCommon-2.3.0-BETA1-full.tar.gz
@@ -838,6 +867,10 @@ common:
git_checkout_command: '$ git clone git://github.com/doctrine/common.git common<br>$ cd common<br>$ git checkout 2.3.0'
pear_install_command: '$ pear channel-discover pear.doctrine-project.org<br>pear install doctrine/DoctrineCommon-2.3.0'
composer: true
+ '2.4':
+ downloadable: false
+ stability: beta
+ releases: { }
orientdb_odm:
slug: orientdb-odm
package: DoctrineOrientDBODM
@@ -849,9 +882,20 @@ orientdb_odm:
latest_version: '1.0'
is_primary: false
issues_link: 'http://www.doctrine-project.org/jira/browse/ORIENTODM'
- browse_source_link: 'http://github.com/doctrine/orientdb-odm'
+ browse_source_link: 'https://github.com/doctrine/orientdb-odm'
versions:
'1.0':
stability: alpha
composer: true
-
+ downloadable: true
+ releases:
+ 1.0.0-beta5:
+ package_name: DoctrineOrientDBODM-1.0.0-beta5.tgz
+ git_checkout_command: '$ git clone git://github.com/doctrine/orientdb-odm.git orientdb-odm<br>$ cd orientdb-odm<br>$ git checkout 1.0.0-beta5'
+ pear_install_command: '$ pear channel-discover pear.doctrine-project.org<br>pear install doctrine/DoctrineOrientDBODM-1.0.0-beta5'
+ composer: true
+ 1.0.0-beta6:
+ package_name: DoctrineOrientDBODM-1.0.0-beta6.tgz
+ git_checkout_command: '$ git clone git://github.com/doctrine/orientdb-odm.git orientdb-odm<br>$ cd orientdb-odm<br>$ git checkout 1.0.0-beta6'
+ pear_install_command: '$ pear channel-discover pear.doctrine-project.org<br>pear install doctrine/DoctrineOrientDBODM-1.0.0-beta6'
+ composer: true
View
12 projects.yml
@@ -41,6 +41,9 @@ orm:
'2.3':
stability: stable
upgrade_file: "https://github.com/doctrine/doctrine2/blob/master/UPGRADE.md#upgrade-to-23"
+ '2.4':
+ downloadable: false
+ stability: beta
dbal:
slug: dbal
repository: dbal
@@ -64,6 +67,9 @@ dbal:
stability: stable
'2.3':
stability: stable
+ '2.4':
+ downloadable: false
+ stability: beta
mongodb_odm:
slug: mongodb-odm
package: DoctrineMongoDBODM
@@ -73,7 +79,7 @@ mongodb_odm:
short_title: MongoDBODM
description: 'Doctrine MongoDB Object Document Mapper is built for PHP 5.3.2+ and provides transparent persistence for PHP objects.'
latest_version: '1.0'
- is_primary: false
+ is_primary: true
issues_link: 'http://www.doctrine-project.org/jira/browse/MODM'
browse_source_link: 'https://github.com/doctrine/mongodb-odm'
versions:
@@ -147,6 +153,10 @@ common:
'2.2':
stability: stable
'2.3':
+ stability: stable
+ '2.4':
+ downloadable: false
+ stability: beta
orientdb_odm:
slug: orientdb-odm
package: DoctrineOrientDBODM

0 comments on commit 20bee3e

Please sign in to comment.
Something went wrong with that request. Please try again.