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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Rebuilding the Docs #153

Open
livghit opened this issue Sep 15, 2023 · 14 comments 路 May be fixed by #551
Open

docs: Rebuilding the Docs #153

livghit opened this issue Sep 15, 2023 · 14 comments 路 May be fixed by #551
Labels
documentation Improvements or additions to documentation NeedsFix Needs implementing

Comments

@livghit
Copy link

livghit commented Sep 15, 2023

Hi 馃寠 馃悪 !
Hope you are doing well ! First I wanted to thank you for this cool powerful Templating language !!

I think it would be very cool if we would be transferring the docs to use Templ itself to show the power of it :) ! I would be ready to help with that !

Have a nice weekend !

@livghit
Copy link
Author

livghit commented Sep 16, 2023

With this , I would also try and create an easy to implement Components library where people could plug into the project and use it .

@joerdav
Copy link
Collaborator

joerdav commented Sep 18, 2023

This is actually something we've thought about. A documentation engine powered by templ would be a great way to dog-food our own project!

It was on the roadmap once a few bigger issues are ironed out, but don't let that stop you! Happy to support any code being put towards the templ docs.

I think templ is a gread tool to support a component library, you can distribute it as a go mod, and import it as you would any other go dependency.

@PentesterPriyanshu
Copy link

can anyone still working on it

@livghit
Copy link
Author

livghit commented Oct 23, 2023

At the moment I do not really have the resources for this . Altho I do not want to give it up because I really enjoy the project. I will try to make me some more time and start to work more intensively towards it 馃悪

@cugu
Copy link
Contributor

cugu commented Oct 29, 2023

I played with templ a bit today and built a simple static site generator and rendered the templ docs.

Happy to fix the remaining bugs and integrate it if you are interested.

Anyway templ is a great tool, thanks for building it!

@livghit livghit closed this as completed Dec 18, 2023
@a-h
Copy link
Owner

a-h commented Dec 20, 2023

Is this completed? Doesn't feel like it, since templ still uses Docusaurus. :)

@livghit livghit reopened this Dec 23, 2023
@livghit
Copy link
Author

livghit commented Dec 23, 2023

Sorry ... I did not close this issue on purpose ....

@livghit
Copy link
Author

livghit commented Dec 26, 2023

@a-h how about @cugu implementation it looks great to me ?

@joerdav
Copy link
Collaborator

joerdav commented Jan 3, 2024

It does look very good, however I think at the moment there may be some rough edges still that @cugu is ironing out. There is a build for the templ docs using templum that shows a couple of them:

https://cugu.github.io/templum-example/

@cugu
Copy link
Contributor

cugu commented Jan 5, 2024

I moved to another syntax highlighter as there was not much drive for adopting templum here recently. I changed that back, so that https://cugu.github.io/templum-example/index.html should now be correct (just outdated).

If there is further interest in using templum I am happy to iron out issues, but I don't plan include as many features as Docusaurus, hugo or similar. It should stay a rather simple templ project. We could also move it to https://github.com/templ-go, if you like.

@joerdav
Copy link
Collaborator

joerdav commented Jan 5, 2024

I think the only step left is to migrate now. The syntax highlighting was the only issue really that I saw

@cugu
Copy link
Contributor

cugu commented Jan 5, 2024

Great, I'll create a PR.

Would you prefer to move it to https://github.com/templ-go, include the whole project here, or keep it where is?

@a-h
Copy link
Owner

a-h commented Jan 5, 2024

What's the plan? Create a general static documentation generation project that templ uses, or create the templ docs?

If it's the first, then I'd say make the docs generator on your own GitHub user name, because I think that templ's job is to be a good way to make HTML, and it's out of scope for templ to equal Hugo or Docusaurus.

Templ can promote it, and the docs site can link to it, but you'd have a maintenance job on your hands if it gets popular. 馃榾

If it's the 2nd, then docs live within the code, so the two are together. In which case a PR is great. Id like to run side by side for a while to reduce risk. For example, you see the new site, but there's a choice to use the old Docusaurus version so that issues with the new one don't stop anyone from finding the info they need.

I'm not sure how we'd do this at the moment. The docs are currently GitHub pages, but I can redirect the domain to a Fargate container or similar if we need to use CPU for that.

@cugu
Copy link
Contributor

cugu commented Jan 6, 2024

I opted for plan 2 and started #401.

You can see the generated docs at: https://cugu.github.io/templ/new/

The docusaurus docs can live in parallel on the same GitHub pages, as long as no directory or page is named new in the docs.

@joerdav joerdav changed the title Rebuilding the Docs docs: Rebuilding the Docs Jan 31, 2024
@joerdav joerdav added documentation Improvements or additions to documentation NeedsFix Needs implementing labels Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation NeedsFix Needs implementing
Projects
None yet
5 participants