mapzen / documentation

Configuration files, tools, and content to build Mapzen's documentation
https://mapzen.com/documentation
MIT License
25 stars 22 forks source link

Redirect proof of concept #169

Closed migurski closed 8 years ago

migurski commented 8 years ago

I’ve added a means of doing redirects in the docs.

In the mkdocs config, it looks for a section like this:

redirects:
  'old-thing': 'get-started'
  'offsite-stuff': 'http://example.com'
  'search': 'besmirch'

The example configures three redirects: old-thing is redirected to get-started, offsite-stuff is redirected to http://example.com, and search is not redirected at all because it's a real page that exists.

rmglennon commented 8 years ago

I'm going to try this with my mobility changes!

migurski commented 8 years ago

Great! I can help when we do the merging and pushing of Extracts tomorrow.