docsify icon indicating copy to clipboard operation
docsify copied to clipboard

[Poc] feat(hook): new hook updateNav for update navbar content

Open anikethsaha opened this issue 5 years ago • 3 comments

This is a working Proof of concept for the new hook updateNav

How to use it.

  function(hook, vm) {
      hook.updateNav(function(navContent) {
        return `${navContent}\n- new link\n- new link 2`
      });
}

anikethsaha avatar Jun 18 '20 15:06 anikethsaha

This pull request is being automatically deployed with Vercel (learn more). To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/docsify-core/docsify-preview/9h85au3g2 ✅ Preview: https://docsify-preview-git-new-hook-updatenav.docsify-core.vercel.app

vercel[bot] avatar Jun 18 '20 15:06 vercel[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 17 '20 16:08 stale[bot]

Is there any intent to get this in?

The problem I have is that I do not want to include the translation path in my sources. If I do that, then my translators have to do make-work of manually updating the path in each URL. So what I want to do is read the current page path, get the translation string "e.g. /en", and insert is as a prefix in each of the links.

hamishwillee avatar Feb 26 '22 08:02 hamishwillee