Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Conversation

alanshaw
Copy link
Member

@alanshaw alanshaw commented Aug 6, 2018

This PR changes the constructor options into headings so that people can link the relevant options. I have needed this multiple times but haven't been able to give people a link to the correct part of the page.

This PR changes the constructor options into headings so that people can link the relevant options. I have needed this multiple times but haven't been able to give people a link to the correct part of the page.

License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
@ghost ghost assigned alanshaw Aug 6, 2018
@ghost ghost added the status/in-progress In progress label Aug 6, 2018
@0x-r4bbit
Copy link
Contributor

Sweet! ⚡️

@alanshaw alanshaw requested review from Mr0grog and daviddias August 7, 2018 10:48
@Mr0grog
Copy link
Contributor

Mr0grog commented Aug 8, 2018

Will try and get a look at this later today.

This also unifies the style in all the places where default values are different in various environments: use a comma between each environment.

License: MIT
Signed-off-by: Rob Brackett <rob@robbrackett.com>
@ghost ghost assigned Mr0grog Aug 8, 2018
Copy link
Contributor

@Mr0grog Mr0grog left a comment

Choose a reason for hiding this comment

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

Looks like a nice improvement! One question inline.

I added a commit to fix a few typos and add links between options where we couldn’t before.

I worry a little that we might want deeper links to, say, libp2p.config.peerDiscovery, but I think you drew the line at the right place. The better way to solve that will probably be to actually generate API docs, which is a whole separate discussion 🙃

| object | [defaults](https://github.com/libp2p/js-libp2p-connection-manager#create-a-connectionmanager) |

- `connectionManager` (object): Configure the libp2p connection manager, see the [documentation for available options](https://github.com/libp2p/js-libp2p-connection-manager#create-a-connectionmanager).
Configure the libp2p connection manager.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason you dropped the link to the connection manager docs here? (https://github.com/libp2p/js-libp2p-connection-manager#create-a-connectionmanager)

Copy link
Member Author

Choose a reason for hiding this comment

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

gah, no

Copy link
Member Author

Choose a reason for hiding this comment

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

Wait, it is linked from the table above instead

@alanshaw alanshaw merged commit 03d31cd into master Aug 9, 2018
@ghost ghost removed the status/in-progress In progress label Aug 9, 2018
@alanshaw alanshaw deleted the docs/constructor-options-headers branch August 9, 2018 08:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants