diff docs/config.yml @ 503:61d53d2163d6

docs: Start a proper "code/API" section.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 23 Jul 2015 23:35:11 -0700
parents 2f4412745db2
children 0f777870fbaf
line wrap: on
line diff
--- a/docs/config.yml	Thu Jul 23 23:34:36 2015 -0700
+++ b/docs/config.yml	Thu Jul 23 23:35:11 2015 -0700
@@ -10,11 +10,19 @@
             type: ordered
             data_endpoint: site.docs
             default_layout: doc
+        api:
+            type: ordered
+            data_endpoint: site.api
+            default_layout: api
     routes:
         -
             url: /docs/%path:slug%
             source: docs
             func: docurl(slug)
+        -
+            url: /api/%path:slug%
+            source: api
+            func: apiurl(slug)
 
 baker:
     assets_dirs: