Skip to content

:method: role creates wrong url #2156

Closed
@wouterj

Description

@wouterj

We have a very strange error on the documentation. If you take a look at http://symfony.com/doc/current/components/finder.html (or any other article which uses the :method: role) the links to the API docs for methods become something like this: http://api.symfony.com/2.1/Symfony/Component/Finder/Finder.html#exclude() while it should become this: http://api.symfony.com/2.1/Symfony/Component/Finder/Finder.html#method_exclude.

I thought it was an error in the extensions created by Fabian, but that looked correct:

full_url = base_url % full_class.replace('\\', '/') + '.html' + '#method_' + method

The link that is created looks like the old way of generating links. When we changed to the new link format in the API doc generator, @weaverryan had changed this 8 months ago in: fabpot/sphinx-php@a9d5ec5

To me, it looks like the documentation generator uses an old version of the sphinx extensions by Fabien.

/cc @fabpot

@weaverryan this should get a 'website' label

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions