Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move details tags #333

Merged
merged 1 commit into from Dec 8, 2017
Merged

Conversation

uzimith
Copy link
Contributor

@uzimith uzimith commented Dec 7, 2017

By the PR (#330), we need opening details to use table of contents links now.

I guess here is a better position.

I changed

From,

Details >
  - Attributes (don't show when there are no properties)
  - Links
     - Details >

To,

- Attributes (don't show when there are no properties)
   - Details >
- Links
  - Details >

@@ -37,6 +38,8 @@ Stability: `<%= schemata['stability'] %>`
| **<%= name %>** | *<%= type %>* | <%= description %> | <%= example %> |
<%- end %>

</details>

<%- end %>
<%- (schemata['links'] || []).each do |link, datum| %>
Copy link
Member

Choose a reason for hiding this comment

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

From your example, I think there would need to be another details block here also? Is that what you intended?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Links means that each link has own details. So, our code creates documents like this.

- Attributes (don't show when there are no properties)
   - Details >
- Link1 (this has anchor for toc link)
  - Details >
- Link2 (also this has.)
  - Details >

Currently, Here is link details tag.

https://github.com/uzimith/prmd/blob/fc6e9410b190c1fd3677dece7eaa690e2a891b30/lib/prmd/templates/schemata/link.md.erb#L8

Copy link
Member

Choose a reason for hiding this comment

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

Ah, right you are, thanks for clarifying for me.

@geemus geemus merged commit 928d9cb into interagent:master Dec 8, 2017
@geemus
Copy link
Member

geemus commented Dec 8, 2017

Thanks!

@uzimith uzimith deleted the feature/move-details branch December 27, 2017 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants