[docs] sorting of examples. if doesn’t work for you, update jekyll.
authorSergey Karayev <sergeykarayev@gmail.com>
Mon, 11 Aug 2014 22:09:53 +0000 (15:09 -0700)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>
Mon, 11 Aug 2014 22:18:45 +0000 (15:18 -0700)
docs/index.md
examples/cifar10/readme.md
examples/feature_extraction/readme.md
examples/imagenet/readme.md
examples/mnist/readme.md
examples/web_demo/readme.md

index 0450ede..e7a8198 100644 (file)
@@ -46,18 +46,16 @@ Guidelines for development and contributing to Caffe.
 
 ### Examples
 
-{% for page in site.pages %}
-{% if page.category == 'example' %}
+{% assign examples = site.pages | where:'category','example' | sort: 'priority' %}
+{% for page in examples %}
 - <div><a href="{{page.url}}">{{page.title}}</a><br />{{page.description}}</div>
-{% endif %}
 {% endfor %}
 
 ### Notebook examples
 
-{% for page in site.pages %}
-{% if page.category == 'notebook' %}
+{% assign notebooks = site.pages | where:'category','notebook' %}
+{% for page in notebooks %}
 - <div><a href="http://nbviewer.ipython.org/github/BVLC/caffe/blob/master/{{page.original_path}}">{{page.title}}</a><br />{{page.description}}</div>
-{% endif %}
 {% endfor %}
 
 ## Citing Caffe
index 315713f..d0b0b76 100644 (file)
@@ -4,6 +4,7 @@ category: example
 description: Train and test Caffe on CIFAR-10 data.
 include_in_docs: true
 layout: default
+priority: 5
 ---
 
 Alex's CIFAR-10 tutorial, Caffe style
index c336e71..357f31d 100644 (file)
@@ -4,6 +4,7 @@ description: Extract AlexNet features using the Caffe binary.
 category: example
 include_in_docs: true
 layout: default
+priority: 10
 ---
 
 Extracting Features
index 883e092..d139ad8 100644 (file)
@@ -4,6 +4,7 @@ description: Train and test "CaffeNet" on ImageNet challenge data.
 category: example
 include_in_docs: true
 layout: default
+priority: 1
 ---
 
 Yangqing's Recipe on Brewing ImageNet
index 65a7807..266ff4c 100644 (file)
@@ -4,6 +4,7 @@ description: Train and test "LeNet" on MNIST data.
 category: example
 include_in_docs: true
 layout: default
+priority: 1
 ---
 
 # Training MNIST with Caffe
index 559c41e..873b4fd 100644 (file)
@@ -4,6 +4,7 @@ description: Image classification demo running as a Flask web server.
 category: example
 layout: default
 include_in_docs: true
+priority: 10
 ---
 
 # Web Demo