-
Notifications
You must be signed in to change notification settings - Fork 66
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
Need more stable URL to reference need elements in HTML #390
Comments
I like the idea, but I don't think that this is easily possible for a static website. In my understanding such a query would need some logic to be executed. Maybe js-code in the frontend may work, if it has access to a data-file (needs.json?), which contains the current mapping between need-id and url. This sound a little bit like a feature for a standalone viewer / js-frontend for sphinx-needs. I will discuss it with some frontend experts to get some ideas for a concept. |
Thanks @danwos. Maybe a local js solution is the easiest and would be inline with the sphinx search feature, which works wonderfully well as a local search. |
@danwos can you narrow down a date for this feature? We have several use cases for it, would be cool to get this in the next few months. |
Next few months is possible ;) The sponsored development (by Prototype Fund) of Open-Needs starts on March and there we need a react based JS Frontend, which will have such a Feature. But maybe we can speed things up, by discussing it with @twodrops internally. |
Hi Daniel, do you have an update on this issue? |
@r-o-b-e-r-t-o We are thinking of creating a reactjs-based interface parallel to a sphinx-theme. This means, instead of static HTMLs, the HTMLs will be rendered dynamically using javascript. It goes in the direction of this idea. This does not replace HTML based theme approach, but is more suitable for usecases which expect dynamic rendering like better responsive UI, filtering etc. The above issue matchings the reactjs approach better as there has to be a javascript based backend which translates the queries. AFAIF, @danwos wanted to start with a protoype of this together with his colleague. |
@r-o-b-e-r-t-o Yes, I guess it should be possible to start with this feature in the existing setup as well and port it to reactjs theme later. @danwos What do you think? |
I agree and I also have thought about it in the last days. So here is my technical conceptAn additional page Redirects to a given Need-ID happen by urls like A new feature/function for layouts is added to add a permalink-icon to each need. This feature must be added to the needs_layout by hand for each project. The New config parameters with default Open questions |
That setup matches my idea, cool. |
@danwos Sound like a pragmatic solution. Thanks for sharing this idea. Can you tell when this feature will arrive? |
@r-o-b-e-r-t-o is already on it. Let me know if any help is needed. |
Sphinx-Needs uses the standard HTML URLs of Sphinx-generated HTMLs to refer to elements with IDs
For example, https://server/sphinx-needs-example-folder/sw_requirements.html#REQ_SwCps_Requirement1
If the folders/files are moved, then the reference to the elements are broken.
It would be nice to have another way to uniquely reference elements with just ID
For example, https://server/needs?query=REQ_SwCps_Requirement1
The text was updated successfully, but these errors were encountered: