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

docs: Added "Edit this page" link #3782

Closed
wants to merge 1 commit into from

Conversation

daertommy
Copy link

With this PR readers can suggest changes to the docs with an easy to use WYSIWYG markdown editor.

This is how the editor looks like for this repo.

holocron-docusaurus-demo.mp4

@toschdev
Copy link
Contributor

That looks amazing! Thanks for the PR

@toschdev toschdev changed the title Added "Edit this page" link to docs docs: Added "Edit this page" link to docs Nov 28, 2023
@toschdev toschdev added the skip-changelog Don't check changelog for new entries label Nov 28, 2023
@toschdev toschdev changed the title docs: Added "Edit this page" link to docs docs: Added "Edit this page" link Nov 28, 2023
@toschdev
Copy link
Contributor

When trying to test this I somehow get this error.
Screenshot 2023-11-28 at 12 19 15

Has this been working for you when you tested?

@daertommy
Copy link
Author

daertommy commented Nov 28, 2023

It looks like there was an error because your fork was out of sync, i will investigate more

For users that don't have a fork out of sync it works, i tested with #3787

@toschdev
Copy link
Contributor

toschdev commented Nov 28, 2023

I've just used the link you provided and tried to test with your fork, indeed. I think should be worth a try

@daertommy
Copy link
Author

I just deployed a fix for fork syncing, it should work now, try this link: https://holocron.so/github/pr/ignite/cli/main/editor

@@ -51,6 +51,9 @@ const config = {
},
sidebarPath: require.resolve("./sidebars.js"),
routeBasePath: "/",
editUrl: ({ docPath }) => {
return `https://holocron.so/github/pr/ignite/cli/main/editor/docs/docs/${docPath}`
Copy link
Member

@julienrbrt julienrbrt Nov 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it using a third-party link? I'd rather point to the GitHub editor directly. On save it, as well, asks if you want to fork and create a new branch. This removes the reliance on a third-party service.

https://github.com/ignite/cli/edit/main/docs/docs/${docPath} should work I believe (and if it does not it would have if we used an ordering in the docs using category.json instead of xx-path I guess).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With Holocron you have a WYSIWYG editor, easier to use for non technical people

it also has real time collaboration and you can edit users PRs code with one click instead of checking out on their fork

Copy link
Member

@julienrbrt julienrbrt Nov 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would non technical people read the Ignite CLI docs? For building a blockchain you need to be technical imho. Additionally, we are talking about markdown here, which does not have the most complicated syntax.

The flow now for editing a page is to grant access a third party tool to your GitHub account, while GitHub just provides an editor, and you are able to easily render it from there as well.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to close this PR, I personally prefer writing in a WYSIWYG editor

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, please let us know if you'd like to continue on this in the future, this could have been a good addition but we can not depend on an online service.

@ilgooz ilgooz closed this Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Don't check changelog for new entries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants