Skip to content

SubsystemReGenerate script creates link to first tab in subsystem's tablist#85

Merged
brichards64 merged 1 commit intoToolDAQ:masterfrom
nicklatham97:automated_tab_redirection
May 13, 2025
Merged

SubsystemReGenerate script creates link to first tab in subsystem's tablist#85
brichards64 merged 1 commit intoToolDAQ:masterfrom
nicklatham97:automated_tab_redirection

Conversation

@nicklatham97
Copy link
Contributor

@nicklatham97 nicklatham97 commented May 7, 2025

Running SubsystemReGenerate.sh now creates a meta refresh immediately after <head> which links to the first tab in a subsystem's tablist if it exists.

For example, running this in /DAQ will produce the following line in /DAQ/index.html:

<meta http-equiv="refresh" content="0; url=./RunControl" />

as RunControl is the first line in /DAQ/tablist

If a line of this format already exists, it will replace the url if it does not correspond to the first in the tablist.

Also added a failsafe line which stops the code from running if a tablist does not exist; running this by accident in subsystem folders with no tablist (e.g. /Alarms) previously created problems.

… the first tab in a subsystem's tablist if it exists
@brichards64 brichards64 merged commit 8162d6b into ToolDAQ:master May 13, 2025
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.

2 participants