Create SchemaGuideLink with an icon that points to the schema guide#441
Create SchemaGuideLink with an icon that points to the schema guide#441abelsiqueira merged 4 commits intomainfrom
Conversation
| @@ -0,0 +1,25 @@ | |||
| <template> | |||
| <a v-bind:href="'https://github.com/citation-file-format/citation-file-format/blob/main/schema-guide.md#' + section"> | |||
There was a problem hiding this comment.
| <a v-bind:href="'https://github.com/citation-file-format/citation-file-format/blob/main/schema-guide.md#' + section"> | |
| <a v-bind:href="'https://github.com/citation-file-format/citation-file-format/blob/1.2.0/schema-guide.md' + anchor"> |
- main -> 1.2.0 for more predictable results
- changed
sectiontoanchor, I believe that's what that is called (needs verification). Also I moved the#to be part of what components use, this makes it easier to recognize how that piece of data is used in my opinion
| export default defineComponent({ | ||
| name: 'SchemaInfoIcon', | ||
| props: { | ||
| section: { |
There was a problem hiding this comment.
| section: { | |
| anchor: { |
| <div id="form-content"> | ||
| <p class="question"> | ||
| What is the abstract of the work? | ||
| <SchemaInfoIcon section="abstract" /> |
There was a problem hiding this comment.
| <SchemaInfoIcon section="abstract" /> | |
| <SchemaInfoIcon anchor="#abstract" /> |
| <div id="form-content"> | ||
| <p class="question"> | ||
| Who are the author(s) of the work? | ||
| <SchemaInfoIcon section="authors" /> |
There was a problem hiding this comment.
| <SchemaInfoIcon section="authors" /> | |
| <SchemaInfoIcon anchor="#authors" /> |
| > | ||
| schema guide | ||
| </a> for examples. | ||
| <SchemaInfoIcon section="identifiers" /> |
There was a problem hiding this comment.
| <SchemaInfoIcon section="identifiers" /> | |
| <SchemaInfoIcon anchor="#identifiers" /> |
| <div id="form-content"> | ||
| <p class="question"> | ||
| What keywords describe the work? | ||
| <SchemaInfoIcon section="keywords" /> |
There was a problem hiding this comment.
| <SchemaInfoIcon section="keywords" /> | |
| <SchemaInfoIcon anchor="#keywords" /> |
| <div id="form-content"> | ||
| <p class="question"> | ||
| What is the license of the work? | ||
| <SchemaInfoIcon section="license" /> |
There was a problem hiding this comment.
| <SchemaInfoIcon section="license" /> | |
| <SchemaInfoIcon anchor="#license" /> |
| <div id="form-content"> | ||
| <p class="question"> | ||
| What is the URL of the work in a source code repository? | ||
| <SchemaInfoIcon section="repository-code" /> |
There was a problem hiding this comment.
| <SchemaInfoIcon section="repository-code" /> | |
| <SchemaInfoIcon anchor="#repository-code" /> |
|
|
||
| <p class="question"> | ||
| What is the URL of a landing page/website for the work? | ||
| <SchemaInfoIcon section="url" /> |
There was a problem hiding this comment.
| <SchemaInfoIcon section="url" /> | |
| <SchemaInfoIcon anchor="#url" /> |
|
|
||
| <p class="question"> | ||
| What is the URL of the work in a repository? | ||
| <SchemaInfoIcon section="repository" /> |
There was a problem hiding this comment.
| <SchemaInfoIcon section="repository" /> | |
| <SchemaInfoIcon anchor="#repository" /> |
|
|
||
| <p class="question"> | ||
| What is the URL of the work in a build artifact/binary repository? | ||
| <SchemaInfoIcon section="repository-artifact" /> |
There was a problem hiding this comment.
| <SchemaInfoIcon section="repository-artifact" /> | |
| <SchemaInfoIcon anchor="#repository-artifact" /> |
| <div id="form-content"> | ||
| <p class="question"> | ||
| What is the title of the work? | ||
| <SchemaInfoIcon section="title" /> |
There was a problem hiding this comment.
| <SchemaInfoIcon section="title" /> | |
| <SchemaInfoIcon anchor="#title" /> |
| /> | ||
| <p class="question"> | ||
| What do you want citers to do with the information provided in your CITATION.cff file? | ||
| <SchemaInfoIcon section="message" /> |
There was a problem hiding this comment.
| <SchemaInfoIcon section="message" /> | |
| <SchemaInfoIcon anchor="#message" /> |
| </q-input> | ||
| <p class="question"> | ||
| What type of work does this CITATION.cff describe? | ||
| <SchemaInfoIcon section="type" /> |
There was a problem hiding this comment.
| <SchemaInfoIcon section="type" /> | |
| <SchemaInfoIcon anchor="#type" /> |
| <div id="form-content"> | ||
| <p class="question"> | ||
| What is the commit identifier of the work? | ||
| <SchemaInfoIcon section="commit" /> |
There was a problem hiding this comment.
| <SchemaInfoIcon section="commit" /> | |
| <SchemaInfoIcon anchor="#commit" /> |
|
|
||
| <p class="question"> | ||
| What is the version of the work? | ||
| <SchemaInfoIcon section="version" /> |
There was a problem hiding this comment.
| <SchemaInfoIcon section="version" /> | |
| <SchemaInfoIcon anchor="#version" /> |
|
|
||
| <p class="question"> | ||
| When was the version released? | ||
| <SchemaInfoIcon section="date-released" /> |
There was a problem hiding this comment.
| <SchemaInfoIcon section="date-released" /> | |
| <SchemaInfoIcon anchor="#date-released" /> |
jspaaks
left a comment
There was a problem hiding this comment.
Hi Abel, this is really nice thank you. I left some minor comments, what do you think? Also, how would you feel about changing the name of SchemaInfoIcon to SchemaGuideLink? For me that covers more of the role it has.
|
Thanks for the review. I agree with the suggestions and I updated the PR with them. |
| </q-tooltip> | ||
| <q-tooltip | ||
| anchor="center left" | ||
| anchor="#center left" |
There was a problem hiding this comment.
| anchor="#center left" | |
| anchor="center left" |
jspaaks
left a comment
There was a problem hiding this comment.
One minor suggestion to correct what seems like a find and replace error, otherwise good to go.
21f92a8 to
d543e27
Compare
|
Nice catch. Thanks for the review |
Pull request details
Includes an i icon at each page question linking to the corresponding schema field
List of related issues or pull requests
Refs:
Describe the changes made in this pull request
Instructions to review the pull request