-
Notifications
You must be signed in to change notification settings - Fork 2
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
PRE-WIP: ways to link to a section in the manual via [pdcontrol] #191
Comments
seems nice, I needed it for 2 cases I remember now |
maybe 3... I know I can find more if this is possible :) 1 case would be enough to grant this. Let's do it |
starting a PR now |
PR done via pure-data/pure-data#2235 |
It seems like the more robust way to do this would be to just have a version of the manual which is a pd patch, the few images in the manual which are not just screenshots of patches should be able to be worked around easily enough and a script would be able to convert the manual to a patch once the screen shot patches have been converted if they are not still available. I would be willing to put in the time to repatch what needs to be repatched if someone else handles the script. Or is there something I am missing? Seems too obvious of a solution to not have been done. |
it's not about referring to a patch in the manual, but referring to bits of text in subsections of the manual |
alternatively, we could just create the actual redirecting file on-the-fly with it requires a single abstraction, rather than manually maintained redirect-files. |
very nice but "white space" in path should be handled
EDIT: |
cool!
not sure if that would be @umlaeute's way to go - but here, i added a mechanism to check all chars and replace whitespaces (and remove escaping backslashes). seems to work for me. not sure if other cases would need to be considered, too? makeredirect_replace_whitespace.zip EDIT: updated file (removed debugging [print] in patch that i had inserted) |
works for me on Windows. |
as seen in pure-data/pure-data#2231 anchors get ignored when using [pdcontrol].
There is a cross-platform hack to make this happen but:
is hard to maintain if we abuse the number sections we want to link from Pd.
is a bit ugly in general but is rock solid (if we want the feature, this is it)
it works like:
we add a folder with a shortname ala
doc/1.manual/pdanchors
there we have
template.html
with this content:we make a copy of the template, then we edit the
url=
and we save it with a nice-name.html
then in Pd we do (from reference folder patches):
The text was updated successfully, but these errors were encountered: