angular.js icon indicating copy to clipboard operation
angular.js copied to clipboard

Incorrectly ordered list at http://docs.angularjs.org/#!/guide/dev_guide.mvc

Open vkoroslev opened this issue 15 years ago • 2 comments

The list of topics at the bottom of http://docs.angularjs.org/#!/guide/dev_guide.mvc are not in the same order as they appear in the left-hand navigation bar.

vkoroslev avatar Jun 21 '11 19:06 vkoroslev

I submitted a pull request that fixes the most obvious inconsistencies for now (#739).

Unfortunately, keeping the sidebar in sync with the overview page and topic pages means having to update all three places.

A better approach might be to create a single model of the topics, and reuse that both as ToC in the overview page, as well as the sidebar tree.

A JSON object tree of the section_ids might do the trick, e.g:

[
  {devguide: [
    {overview: []},
    {bootstrap: [
      {auto_bootstrap: []},
      {manual_bootstrap: []}
    ]},
  ]}
]
```etc.
Another option might be to parse the overview page itself, and extract the info from there.

Tell me if you want me take a shot at a long term solution.

manuel-woelker avatar Jan 31 '12 20:01 manuel-woelker

thanks! we need to completely redo the structure of the docs, in the meantime I'll just go ahead and accept your PR.

IgorMinar avatar Mar 23 '12 23:03 IgorMinar