Skip to content

Conversation

@TheauW
Copy link
Contributor

@TheauW TheauW commented Jun 20, 2025

No description provided.

* User documentation for DiracX web.
*
*/
export const userDocumentation: UserDocumentation = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if it wouldn't be better to manage the documentation from a single source, namely /docs/, where we also host the dev and admin documentation. I have the feeling it would be easier to maintain.

But then, the questions is: should we deploy the user documentation both in readthedocs and the web interface? Or should we completely separate it from the other documentations when we deploy them? Then it means we would deploy the admin and dev documentation in readthedocs and the user documentation would go here (e.g. fetching the github raw content).

Of course the simplest solution would be to have everything in /docs... which means we stop going in that direction (at least for now).

We can discuss about that tomorrow, but I think for now I would:

  • add your documentation about the SearchBar in /docs/users in the other PR
  • and we just stop the development of this solution for now (and revisit it if needs be in the future)

Do you have any opinion?
Sorry...

Copy link
Collaborator

Choose a reason for hiding this comment

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

What could be potentially interesting is a guided tour (e.g. https://www.shepherdjs.dev). I don't think it's the priority though.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the user documentation can stay here, and the admin and dev in rtd. We can anyway decide f2f.

@TheauW TheauW marked this pull request as draft July 15, 2025 13:41
@TheauW TheauW force-pushed the twartel-user-guide branch 2 times, most recently from 693af7c to 50c74cd Compare July 24, 2025 09:01
@TheauW TheauW requested a review from ryuwd July 29, 2025 12:16
@TheauW TheauW force-pushed the twartel-user-guide branch from 6079ff7 to bad2bdb Compare July 29, 2025 14:24
@TheauW TheauW marked this pull request as ready for review July 29, 2025 14:25
@TheauW TheauW requested a review from ryuwd July 30, 2025 08:31
Copy link
Collaborator

@aldbr aldbr left a comment

Choose a reason for hiding this comment

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

I see 2 potential "problems" with the approach:

  • a significant amount of manual work: extensions seem to need to embed a generatedDoc.ts script
  • the documentation is "duplicated" within the source code

I have the feeling this is a common problem, but we have the extra complexity of supporting extensions.

What about:

  • you export /docs/users when you build diracx-web-components: may be just by copying *.md files into *.mdx
  • in diracx-web and gubbins you leverage the NextJS config to get the *.mdx content and incorporate it into the help component.

Here are a few resources that might help:

Have you already explored MDX and its integration with NextJS?
I don't know exactly how to connect the pieces and whether it's feasible, but I have the feeling it could potentially prevent us from doing too much manual work and "duplicate" the documentation.

If not already done, could you have a look please?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants