Skip to content

Fix next/previous links in handbook#15456

Merged
oandregal merged 2 commits into
masterfrom
fix/next-prev-links
May 6, 2019
Merged

Fix next/previous links in handbook#15456
oandregal merged 2 commits into
masterfrom
fix/next-prev-links

Conversation

@oandregal
Copy link
Copy Markdown
Member

Closes #14794

After landing #15421 the only outstanding issue for next/previous links were components and packages children. This fixes the issue by embedding the sections in the proper places.

@oandregal oandregal self-assigned this May 6, 2019
@oandregal oandregal added [Type] Bug An existing feature does not function as intended [Type] Developer Documentation Documentation for developers labels May 6, 2019
Copy link
Copy Markdown
Contributor

@chrisvanpatten chrisvanpatten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the changes to the tooling code look good, just want to make sure we still target manifest-devhub.json for the moment, to avoid unintentional changes on the legacy handbook until the auto-updates are disabled and the bulk redirects are on.

Comment thread docs/manifest.json
"slug": "theme-support",
"markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/docs/designers-developers/developers/themes/theme-support.md",
"parent": "themes"
"title": "@wordpress/a11y",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The legacy manifest.json should not be changing at this point, so the legacy handbook isn't updated. Updated manifests should still be targeted at manifest-devhub.json until we can disable the auto-updates at the legacy handbook.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the changes merely reorder the sections to fix the previous/next links, do not alter anything else (titles, slug, etc). This can be safely merged, then the DevHub manifest PR can be rebased and updated to reflect these changes as well.

Comment thread docs/tool/index.js
const { getRootManifest } = require( './manifest' );

const tocFileInput = path.resolve( __dirname, '../toc.json' );
const manifestOutput = path.resolve( __dirname, '../manifest.json' );
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See note above re: manifest.json vs manifest-devhub.json

Copy link
Copy Markdown
Contributor

@chrisvanpatten chrisvanpatten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@oandregal oandregal merged commit eab4739 into master May 6, 2019
@oandregal oandregal deleted the fix/next-prev-links branch May 6, 2019 17:44
@youknowriad youknowriad added this to the 5.7 (Gutenberg) milestone May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Bug An existing feature does not function as intended [Type] Developer Documentation Documentation for developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handbook: next/prev links do not follow the sidebar order

3 participants