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

Help improve the website! #434

Closed
PaulLeCam opened this issue Jan 15, 2018 · 14 comments
Closed

Help improve the website! #434

PaulLeCam opened this issue Jan 15, 2018 · 14 comments

Comments

@PaulLeCam
Copy link
Owner

PaulLeCam commented Jan 15, 2018

React-Leaflet now has a website serving the documentation: https://react-leaflet.js.org

If you want to contribute, now is a great time, there are still lots of things to do to improve this website:

  • A better design: I just used Leaflet's colors out of simplicity but others might look better.
  • A real logo
  • Translations: the project is added to Crowdin so you can help translate it using this link: https://crwd.in/react-leaflet
  • Fixing dead links, grammar, making sentences more explicit...
  • Any other idea?

Thanks for your help!

@keul
Copy link

keul commented Jan 22, 2018

Another idea: provide a live example page instead of referring only to local hosted examples. Seems that docusaurus can do this: https://docusaurus.io/docs/en/custom-pages.html

@PaulLeCam
Copy link
Owner Author

Yes, once Docusaurus supports client-side components (facebook/docusaurus#292) that would be a good thing to add.

@tanvirraj
Copy link

Hey @PaulLeCam . First of All Thanks for this Project . I use this everyday in my daily job.
Today i come here to find some issues , so that i can contribute, And Found this .

I think there are many ways we can improve this.
First think about documentation. Currently there are 15 examples. but the problem is if i have to see what examples do what i have to pull it and run . One thing we can do is to give a https://codesandbox.io/ link so anyone can see live example.

If you agree i will run all the example code in codesandbox and make doc little bit update with like

  • simple Marker with Popup (source code)(demo)

  • Event handling (source code)(demo)

this way .
what do you think.

@PaulLeCam
Copy link
Owner Author

Hey, thanks for your comment and your offer to help!

I've never used CodeSandbox so I don't know if it's the best solution, but please don't hesitate to try it out! Maybe it can be used at least as a temporary thing, if it integrates well with Docusaurus.

Ideally the examples could be updated when building the website, using the latest version of the library rather than using the published files from a CDN, but I don't know if it is possible with a third-party solution like CodeSandbox, that's why I was more thinking about using a tool like component-playground or similar once it's possible do provide client-side components with Docusaurus.

@tanvirraj
Copy link

Thanks. i like your idea . i will also search if we can do with Docusaurus.
you can have look on codesandbox with embedding .
just like this https://codesandbox.io/docs/embedding/

@koltclassic
Copy link

koltclassic commented Feb 12, 2018

I'd love to help out with improving the site / documentation! It looks like the makers of component-playground have a react-specific implementation here. Would that make sense for this use case? Something like Storybook may also be useful.

@koltclassic
Copy link

I have a partially-completed Storybook version of the documentation in progress; would this be useful in the meantime? It seems like a relatively simple process to deploy Storybook to a static site (using something like storybook-deployer)
screen shot 2018-03-09 at 3 20 52 pm

@TroySchmidt
Copy link

+1 For using Storybook to push to a static site. Also, the project MaterialUI has a very good site with example demos + API setup. It is good that the documentation is building off the source code so as the code updates the API documentation site updates from that and then demo examples are added adhoc.

@PaulLeCam
Copy link
Owner Author

I agree Storybook is great for component demos, the issue is more how to integrate it with Docusaurus?
At the moment the publication process with Docusaurus is very simple and I'd rather keep it that way rather than rolling a custom setup adding maintainance.

Material UI is a good example as well, that's what I had in mind originally, but until Docusaurus supports hydrating components client-side, this kind of solution is not possible.

@moklick
Copy link

moklick commented Jun 19, 2018

Hey! Did you saw the Open Logos project? Maybe you can get a logo there :)

@colbyfayock
Copy link
Contributor

@koltclassic is that branch public I can see the story you put together of the map example? i'm trying to create a story component and the map gets super messed up and doesn't respect the properties I'm passing in (not blaming react-leaflet here). but when i render it out on a standard page it works just fine

image

@koltclassic
Copy link

@colbyfayock Sure! I just pushed my code up; you can find it here. That issue does sound familiar, but I honestly can't remember how I went about solving it (it has been a while since I've interacted with this code 😅 ). Feel free to reach out as needed!

@colbyfayock
Copy link
Contributor

@koltclassic thank you! realized the age of the thread after posting 🤦‍♂️

@PaulLeCam
Copy link
Owner Author

Thanks to @colbyfayock for the logo and branding changes, now published on the website!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants