Skip to content

Improve API documentation#133

Merged
tinder-cfuller merged 6 commits intomainfrom
improve-api-docs
Jun 17, 2022
Merged

Improve API documentation#133
tinder-cfuller merged 6 commits intomainfrom
improve-api-docs

Conversation

@tinder-cfuller
Copy link
Contributor

No description provided.

Comment on lines +13 to +19
* ``AbstractBuilder`` has the following generic parameters:
* | Name | Description |
* | ------------------------------ | ------------------------------------------------------------------------------ |
* | ComponentType | The DI graph `Component` type. |
* | BuildType | The type of `Flow` object the ``AbstractBuilder`` instance will create. |
* | DynamicBuildDependencyType | The type of dependency provided dynamically to the `BuildType` instance. |
* | DynamicComponentDependencyType | The type of dependency provided dynamically to the `ComponentType` instance. |
Copy link
Contributor

Choose a reason for hiding this comment

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

I dont think we need to add spaces to the end up the table.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Those were added so the | symbols align vertically.

Copy link
Contributor

Choose a reason for hiding this comment

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

I dont think we need to add spaces for this table though. The table should extend to the end of the longest line plus one space and one vertical bar. The longest line is line 19 which appears to have an extra space.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, if that is the case, I can adjust 👍

///
/// The closure has the following arguments:
/// | Name | Description |
/// | Name | Description g |
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch 👍

To avoid bloating the `Context` instance, data transformations and other business logic can exist in the Node's `Worker` instances, and the `Context` may call methods on those `Worker` instances as needed.

The `Context` may participate in keeping the Node's user interface (through a `Presentable` protocol) in sync with the current app state, though the view state dedicated `Worker` provided to the Node normally handles this responsibility.
The `Context` may participate in keeping the Node's user interface (through a `Presentable` protocol) in sync with the current app state, though the Node's view state dedicated `Worker` normally handles this responsibility.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe this reads better?

...though the Nodes' dedicated view state `Worker`

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How about simply this?

... though the Node's view state `Worker` ...

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good :)

/// - completion: An optional closure to execute when the dismissal is finished.
///
/// The closure has no arguments and returns `Void`.
/// The closure has no arguments and returns ``Void``.
Copy link
Contributor

Choose a reason for hiding this comment

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

What does "Void" link to? Swift.Void? If so, I wonder why we dont need to link to it directly whereas with UIKit types, we do.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does not link to anything.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we using double slashes then?

Copy link
Contributor Author

@tinder-cfuller tinder-cfuller Jun 13, 2022

Choose a reason for hiding this comment

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

So they would link to something (meaning link to the doc page for Void).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since they are not, we can remove them. But maybe good to leave them on the chance that a future version of DocC will link them properly.

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess that I what I was getting at then. Why do we explicitly link to some things and then implicitly link to others. What is the style guide rule to follow here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would prefer that DocC just link them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed back to single backticks.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@tinder-cfuller tinder-cfuller merged commit 10f5d98 into main Jun 17, 2022
@tinder-cfuller tinder-cfuller deleted the improve-api-docs branch June 17, 2022 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

framework Framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants