-
Notifications
You must be signed in to change notification settings - Fork 61
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
Website for Theia Trace Extension documentation #896
base: master
Are you sure you want to change the base?
Conversation
0129a04
to
bf2a264
Compare
Great that someone got back on this one! However, keep in mind that #776 was developed with the following requirements:
The reason for many of the requirements above: we wanted a "static webpage generation framework" independent solution. I hope the explanation above clarifies the proof of concept presented in #776. So, do we fully want to replace the proof-of-concept presented in #776? In that case I'd be extremely interested to check if your proposal can address the requirements above. Some other side notes:
|
f19d37d
to
4829c31
Compare
Thank you for considering this, Francesco. The second commit implements all items from your list of requirements, including the Mermaid diagrams. The images inside the ADR's are not showing up, but I can fix that once I have the chance. The minimum NodeJS version required for this PR is the same as for theia-trace-extension, which is the same as for Theia. This PR is an attempt to avoid adding an old, larger and less efficient framework to the project. I hope it is not dismissed as if it was using a framework that is "born and dies" overnight, because Svelte has been between the most loved frameworks for years now. (See https://survey.stackoverflow.co/2022/#most-loved-dreaded-and-wanted-webframe-love-dread). The JS community evolves and we should take advantage of its progress. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR would require being rebased on current latest master, before I at least can review it; thanks. It is currently many commits behind already. Time flies indeed :)
3c294f2
to
6c3bb7e
Compare
Rebased. |
Thanks! -Will get back to it early next week as soon as possible. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this work. My initial comments before reviewing further, mainly README ones. And here are my general comments:
- I'd split the styling part out of the ADR commit, so into another commit that follows. This is so that we may review the moves separately from the in-file changes.
- Moving the ADRs would also require the corresponding changes to repo root's
.vscode/launch.json
andREADME.md
.
@Rodrigoplp-work Does this require to run a web-server? Or can it be statically linked from, for example, https://www.eclipse.org/cdt-cloud/. Please let me know. |
Addendum: |
c982ac8
to
af15ae5
Compare
Yes, it requires a web-server, which is started with This is the requirement proposed by Francesco in his initial PR (#776). As he stated: "The same approach could be used to generate user oriented |
|
|
The web-server would have to run at Eclipse foundation premises. I'm not clear if and how we can get such setup. Each Eclipse project has a location that is served by the central web server For example: The The https://www.eclipse.org/tracecompass page is for Eclipse Trace Compass and is served by repo https://github.com/eclipse-tracecompass/tracecompass-website. Any suggestions on how to continue with this PR and take advantage of Svelte considering the information above? Can it be deployed to GitHub pages? |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again @Rodrigoplp-work and @frallax for this whole effort in improving our online doc.
Sure. I can see that https://github.com/eclipse-cdt-cloud/website is built on Hugo, which is a static site generator. I don't know what Anyway, SvelteKit can generate static websites too. By adding an adapter (https://kit.svelte.dev/docs/adapters#supported-environments-static-sites) it creates a folder in Then, |
I told you that this PR would have had more success than mine ;) As discussed in a separate forum (but forgot to add here), it looks like the current patchset fulfill all requirements apart from one:
The rationale for the requirement above was that we were expecting to have a folder structure similar to the following:
what you propose in this PR is to move all the documentation (md files) into the doc/web-doc folder. Not sure however if this is a "hard" or "soft" requirement, I leave the last word to the project owners :) |
ab28d5e
to
7d8f012
Compare
efd503f
to
6a6e43c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- PR can be rebased again at this later stage.
- Commit mentions moving
ADRs back to their original path
, but I'd rather not move them in a preceeding commit in the first place; doing so becomes a known no-op off this PR. IIUC that is. - Wondering if it is necessary to copy
the ADRs to a folder inside the project
, or can't we instead have that script refer to them from upwards. But maybe we can't. - If we copy still, what if an ADR file changed since previously copied, will it be copied again to update the local doc version of it? (I think it should.) -Asking because commit says
only copies folders and files that are missing
. - Reiterating a previous comment of mine, about
The app automatically generates pages for the ADRs
, I'd rather instead reuse (point to) the existing GitHub rendering with Mermaid and all. As opposed to having to maintain a parallel way of rendering such markdowns again, our (specific) way. - Other known sites use Hugo, so maybe we'd need to as well, per this PR and next steps.
9788eab
to
701ddfe
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- LGTM as a base framework now, thanks @Rodrigoplp-work for having pursued this effort.
- Left to fix would be replacing parentheses with angle brackets in the base commit message
Signed-off-by
(as well as PR description). - I may then Approve and let another review unfold.
- Our next steps beyond this PR, among others, could be to
- check for static generation or how to fit into our Eclipse site, and
- look at ways to adjust the page design, based on that integration (style, format, UX &co.).
Adds a website in the "doc" folder to hold the documentation for Theia Trace Extension. Website built with [Svelte Kit](https://kit.svelte.dev). This PR replaces eclipse-cdt-cloud#776, which accomplishes the same goal but uses GatsbyJS. The proposal to replace Gatsby with Svelte aims at reducing the code base and adopting more modern solutions for the problem of rendering static documentation sites. Signed-off-by: Rodrigo Pinto <rodrigo.pinto@calian.ca>
701ddfe
to
8427297
Compare
The script copies ADRs from the `doc/adr` folder into the web-doc project, so that HTML pages can be generated for them. The script runs automatically when the user starts the project with `yarn dev`. Before copying the files the script compares folders and only copies folders and files that are missing, or that were modified. The script runs synchronously, so that the project only starts after the ADRs have been copied. Signed-off-by: Rodrigo Pinto <rodrigo.pinto@calian.ca>
8427297
to
b1cc799
Compare
Adds pages for ADRs with code styling and mermaid diagrams. About page has some minimal information about the project that can be expanded in the future. Signed-off-by: Rodrigo Pinto <rodrigo.pinto@calian.ca>
b1cc799
to
8d8a98a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
The question about deployment still has not been answered, unless I have missed it. Running an additional web-server is not an option as far as I can see. We need to work with what is provided by the Eclipse foundation. Any additional web-server would need to run somewhere and some organization would have to provide the resources for it. If we can create a static web page from this proposal using Svelte then we can go forward with this proposal. Any thoughts? |
Is the doc going to be deployed in FOSS? Asking |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Un-approving only to make the open topics visible.
Adds a website in the "doc" folder to hold the documentation for Theia Trace Extension.
Website built with Svelte Kit.
This PR replaces #776, which accomplishes the same goal but uses GatsbyJS. The proposal to replace Gatsby with Svelte aims at reducing the code base and adopting more modern solutions for the problem of rendering static documentation sites.
Signed-off-by: Rodrigo Pinto rodrigo.pinto@calian.ca