Skip to content

Split up Docs and API#962

Merged
cpojer merged 1 commit intofacebook:masterfrom
yangshun:sidebar-docs-api
May 28, 2019
Merged

Split up Docs and API#962
cpojer merged 1 commit intofacebook:masterfrom
yangshun:sidebar-docs-api

Conversation

@yangshun
Copy link
Copy Markdown
Contributor

As a follow up of #934, by @cpojer

I'm wondering if there is a way to split up the Docs and API pages into two separate top-level entry points both with their own sidebars? For Docs, it should only have the Guides sections and for API it should have the Components and API sections. Is this possible?

This PR splits up the Docs and API pages into two separate navigations.

Note that this only takes effect in the 0.59 docs onwards. We could technically go back and edit the sidebars for all the previous versions but not sure if it'll be worth it. I could do it the maintainers think it's necessary. But modifying old versions is not recommended and even I'm not sure what undesired consequences there will be.

Test Plan

Now there are two top-level entry points for docs-related content - Docs and API

Screen Shot 2019-05-26 at 11 31 47 AM

Screen Shot 2019-05-26 at 11 31 51 AM

@react-native-bot
Copy link
Copy Markdown

Deploy preview for react-native ready!

Built with commit df009f5

https://deploy-preview-962--react-native.netlify.com

Changes to docs/ are reflected in the next "master" version.

Thank you for your contributions.

How to ContributeDocumentation Sources

Copy link
Copy Markdown
Contributor

@cpojer cpojer left a comment

Choose a reason for hiding this comment

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

This is absolutely fantastic. Thank you so much! I'll work on an intro page for the API docs next.

@cpojer cpojer merged commit 718ada4 into facebook:master May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants