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

AutoLinkTypes docs theme setting is slightly confusing #74

Closed
savornicesei opened this issue Jun 3, 2021 · 1 comment
Closed

AutoLinkTypes docs theme setting is slightly confusing #74

savornicesei opened this issue Jun 3, 2021 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Milestone

Comments

@savornicesei
Copy link
Contributor

savornicesei commented Jun 3, 2021

Issue by CharliePoole
Wednesday Aug 05, 2020 at 14:54 GMT
Originally opened as Wyamio/Wyam.Web#95


At https://wyam.io/recipes/docs/settings in the documentation the entry for DocsKeys.AutoLinkTypes says...

Controls whether type names from the API enclosed in code fences in either blog posts or content pages should be automatically linked to the corresponding API documentation page (the default is true).

It took me quite a bit of time experimenting to figure out why this wasn't working for me. Reading the code and learning that it actually looks for a <code> element in the html put me on track finally.

I eventually learned through experimentation that the following generate a link in a .md file...

  • Simple class Name between back-ticks
  • Full code fence (three ticks before and after) without any language specification

The following don't work, even though the documentation led me to try them

  • Anything more than the simple class Name (code samples, FullName of class, class plus method name)
  • Use of a code fence with a language specified

I understand that you are not updating Wyam these days but an update to the docs would be nice. If I read the code correctly, however, the info on that particular page is pulled from the Wyam code itself. Would you accept a PR to fix it?

AB#22

@savornicesei savornicesei transferred this issue from Wyam2/docs Aug 18, 2021
@savornicesei savornicesei added documentation Improvements or additions to documentation enhancement New feature or request labels Aug 18, 2021
@savornicesei savornicesei added this to the v3.0.0 milestone Aug 18, 2021
savornicesei added a commit that referenced this issue Aug 25, 2021
AutoLinkTypes docs theme setting is slightly confusing #74
@savornicesei savornicesei self-assigned this Aug 25, 2021
@savornicesei
Copy link
Contributor Author

Fixed in ed1c454

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant