Skip to content

manos documentation broken. #115

Open

Description

@MarkKharitonov

First of all, the index page is not available at http://localhost:8181/ as the output suggests, but rather at http://localhost:8181/Index

But even when the index page shows, all the links there are broken.

This makes it really hard to start using manos and that's a shame, because its manifesto is very inspirational.

Activity

  1. MarkKharitonov commented on Jul 11, 2011

    @MarkKharitonov
    Author

    OK, it seems that the default MatchType of RouteAttribute was changed from Simple to String. Once I added explicit MatchType.Simple to DocsModule.Manual and DocsModule.Tutorial methods the routing worked, but tutorial pages where still not found.

    The reason for that failure is that DocsModule.WriteMarkdownDocsPage was passed the page parameter, which is "page-1.md", whereas the actual path should be "Tutorial/page-1.md".
    So, instead of:

    [Route("/Tutorial/{page}")]
    public void Tutorial(IManosContext ctx, string page)
    {
      WriteMarkdownDocsPage(ctx.Response, page);
    }
    

    We should have:

    [Route("/Tutorial/{page}", MatchType = MatchType.Simple)]
    public void Tutorial(IManosContext ctx, string page)
    {
      WriteMarkdownDocsPage(ctx.Response, ctx.Request.Path.TrimStart('/'));
    }
    

    Now I can view the manual and the tutorial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions