Skip to content

Don't mangle existing template routes. #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 28, 2015

Conversation

smashwilson
Copy link
Member

v3 seems to have broken the client's ability to render already-mapped content in getting unmapped content to work. Basically, the control repository's routes.json file was being mangled during service pod launch:

$ jq . < ~/.deconst/control-0/routes.json 
{
  "developer.rackspace.com": {
    "routes": {
      "developer.rackspace.com": {
        "routes": {
          "^/": "default.html",
          "^/$": "index.html",
          "^/signup": "index.html",
          "^/databases": "databases-index.html",
          "^/blog": "blog-index.html",
          "^/blog/.+?": "blog-single.html",
          "^/blog/page?": "blog-index.html",
          "^/blog/categories": "blog-index.html",
          "^/blog/authors": "blog-index.html",
          "^/docs": "docs-home.html",
          "^/docs/.+?": "docs-page.html",
          "^/docs/user-guides/infrastructure/": "user-guide.html",
          "^/docs/cloud-images/v2/developer-guide": "docs-singlepage.html",
          "^/docs/cloud-load-balancers/v1/developer-guide": "docs-singlepage.html",
          "^/docs/rack-cli/": "rack-cli.html",
          "^/sdks": "sdks-home.html",
          "^/sdks/.+?": "sdks-page.html",
          "\\.xml$": "feed.xml"
        }
      }
    }
  }
}

This change handles the routes structure consistently and renders content with the correct template either way.

Fixes deconst/deconst-docs#170.

smashwilson added a commit that referenced this pull request Sep 28, 2015
Don't mangle existing template routes.
@smashwilson smashwilson merged commit 29ed305 into deconst:master Sep 28, 2015
@smashwilson smashwilson deleted the mapped-repo-templates branch September 28, 2015 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant