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

Integrate external sources #2725

Closed
a21ns1g4ts opened this issue May 8, 2020 · 9 comments
Closed

Integrate external sources #2725

a21ns1g4ts opened this issue May 8, 2020 · 9 comments
Labels
feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future.

Comments

@a21ns1g4ts
Copy link

a21ns1g4ts commented May 8, 2020

🚀 Feature

Integrate external sources.

Motivation & Pitch

A separate system for documentation called Wiki, is built right into each GitHub project. If we can use the docusaurus for build page from github, would save us a great deal of time.

@a21ns1g4ts a21ns1g4ts added feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. status: needs triage This issue has not been triaged by maintainers labels May 8, 2020
@amimas
Copy link

amimas commented May 8, 2020

Do you mean just presenting github wiki differently? That's really not the purpose of this tool. It's a static site generator. Maybe I misinterpreted the proposal.

@yangshun
Copy link
Contributor

yangshun commented May 8, 2020

I think what @Atiladanvi means is to use GitHub wiki as a source of the docs content. This should be possible using plugins.

@amimas
Copy link

amimas commented May 8, 2020

Ahh... Source of docs from github wiki. Thanks for clarifying it.

@amimas
Copy link

amimas commented May 8, 2020

It still feels a bit outside of Docusaurus purpose - creating technical docs site.

Sourcing docs from another source like headless cms (i.e. contentful) might make sense. What would be the point of sourcing from github wiki? That's just presenting wiki content differently than how github does it.

@yangshun
Copy link
Contributor

yangshun commented May 8, 2020

Yeah, agreed. I think this is out of scope of Docusaurus.

@yangshun yangshun closed this as completed May 8, 2020
@yangshun yangshun removed the status: needs triage This issue has not been triaged by maintainers label May 8, 2020
@a21ns1g4ts
Copy link
Author

Thanks for explanation. I will write a plugin to implement this feature

@meleu
Copy link

meleu commented Nov 29, 2020

hey @Atiladanvi (a 🇧🇷 fellow here 👋).

Have you created such plugin? Is it open-source? I'm interested in the very same thing.

I'm the maintainer of https://docs.retroachievements.org/ and currently I use mkdocs with some shell script tricks to get the input files come from the wiki. But I'm willing to migrate to Docusaurus, as a more modern platform with some nice features.

@a21ns1g4ts
Copy link
Author

Hello @meleu. I was think to write this. But i'm waiting a big idea to start. As a you can see the @vanbasten17 created a issue about this and i'm watch. In that issue has explaned ways how implements that functionalitie. If you wanna do this now let's work.

@vanbasten17
Copy link
Contributor

Hi @Atiladanvi , sorry for not updating the state in the issue, I didn't find time any more. I finally came up with something simple that covered our needs atm, but I think it would be very necessary to source external content to feed the site. I have created a script to automate some of these steps as you can see here: https://github.com/hubtype/botonic/blob/master/docs/website/scripts/update-plugins-docs/index.ts. As an idea, you could automate the following steps:

  1. Creation of a directory inside the directory storing the markdown files.
  2. Fetch the content from github or any other pullable site (for releases I used this simple solution). You can also pull some contents with this API from Github https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#contents.
  3. Generate a header for each .md file.
  4. Bump there the content.
  5. Update necessary sidebars/localization references.

I hope it helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future.
Projects
None yet
Development

No branches or pull requests

5 participants