docus icon indicating copy to clipboard operation
docus copied to clipboard

[Components] Edit on GitHub button

Open itsmnthn opened this issue 2 years ago • 5 comments

Tried setting this app config

github: { edit: true, dir: 'content', owner: '', repo: 'docs', branch: 'main' },

but cannot see the button rendered at bottom of the page

itsmnthn avatar Dec 12 '22 06:12 itsmnthn

Looks like GitHub edit function wasn't finished.

https://github.com/nuxt-themes/docus/blob/3e054be6ccbff0fabbbea2c28f62320f5a33194b/components/docs/DocsPageContent.vue#L83-L84

kduma avatar Dec 14 '22 17:12 kduma

I saw it enabled on nuxt.com. so I tried and discovered that it still needs a bit of work to be a working feature.

itsmnthn avatar Dec 15 '22 03:12 itsmnthn

Nuxt.com docs, doesn't use Docus for its website since this PR: https://github.com/nuxt/framework/pull/9007

They're using nuxt-website-theme NPM package, but I can't find the GitHub repo for it.

kduma avatar Dec 15 '22 14:12 kduma

Indeed @kduma

If you want to open a PR to finish the edit on GitHub that would be awesome ❤️‍🔥

atinux avatar Dec 15 '22 16:12 atinux

Hey; this has been moved to our current backlog for Docus.

We also have this task on Elements: https://github.com/nuxt-themes/elements/issues/160

Tahul avatar May 17 '23 13:05 Tahul