packagedocs icon indicating copy to clipboard operation
packagedocs copied to clipboard

Simple package produces invalid "Docs" link in header

Open krlmlr opened this issue 7 years ago • 2 comments

https://github.com/krlmlr/tic.packagedocs => https://krlmlr.github.io/tic.packagedocs, I basically just called init_vignettes() without adapting the generated code. See https://travis-ci.org/krlmlr/tic.packagedocs/builds/246795288#L1424 for the build log.

I have also found that it seems necessary to install the package before building the documentation, but I guess this is by design.

krlmlr avatar Jun 25 '17 14:06 krlmlr

Thanks for the report. That is indeed not how the docs link should be populated with the initialization. I have made a fix here: https://github.com/hafen/packagedocs/tree/fix-docs-link. I haven't verified yet but will merge after making sure it works.

hafen avatar Jun 26 '17 22:06 hafen

After running packagedocs::init_vignettes() , I get in the headers of _docs.Rmd and rd.Rmd navpills: |

  <li><a href='docs.html'>Docs</a></li>

It should be :

  <li><a href='index.html'>Docs</a></li>

Correcting it solves the issue.

EricMarcon avatar Jan 01 '18 21:01 EricMarcon