Skip to content

Commit

Permalink
returned to past path logic, no clue where github is getting its path…
Browse files Browse the repository at this point in the history
… from
  • Loading branch information
eseverett committed Mar 6, 2024
1 parent 2c16f3d commit 7f55864
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 13 deletions.
Binary file modified docs/build/doctrees/environment.pickle
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h1>IDEM Safety Relay Troubleshooting Guide</h1>
</ol>
<p>During normal operations all 6 of these lights should be on if the relay is supposed to be receiving power.
If any of the LEDs are not on, there is an error occurring.</p>
<a href="/_static/IDEM_safety_relay_manual.pdf" class="pdf-button" target="_blank">IDEM_safety_relay_manual.pdf</a><section id="resolved-issues">
<a href="/docs/build/html/_static/IDEM_safety_relay_manual.pdf" class="pdf-button" target="_blank">IDEM_safety_relay_manual.pdf</a><section id="resolved-issues">
<h2>Resolved Issues</h2>
<ol class="arabic simple">
<li><p>A relay was not properly actuating when receiving power, and would show either the K1 or K2 off.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
<section id="laser-safety-systems-troubleshooting-guide">
<h1>Laser Safety Systems Troubleshooting Guide</h1>
<p>For the CXLS laser interlock systems, Laser Safety Systems modules are used to perform the majority of the interlocking function.</p>
<a href="/_static/Laser_Safety_Systems_user_manual.pdf" class="pdf-button" target="_blank">Laser_Safety_Systems_user_manual.pdf</a><section id="resolved-issues">
<a href="/docs/build/html/_static/Laser_Safety_Systems_user_manual.pdf" class="pdf-button" target="_blank">Laser_Safety_Systems_user_manual.pdf</a><section id="resolved-issues">
<h2>Resolved Issues</h2>
<ol class="arabic simple">
<li><p>The Laser-1 VIEWMARQ display was not updating when Laser-1 was armed.
Expand Down
Binary file modified docs/source/extensions/__pycache__/pdf_button.cpython-311.pyc
Binary file not shown.
20 changes: 9 additions & 11 deletions docs/source/extensions/pdf_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,17 @@ def run(self):

# Check if explicitly marked as a local build

# on_gitlab = os.environ.get('GITLAB_CI') == 'true'
# on_github = os.environ.get('GITHUB_ACTIONS') == 'true' # custom environment variable
on_gitlab = os.environ.get('GITLAB_CI') == 'true'
on_github = os.environ.get('GITHUB_ACTIONS') == 'true' # custom environment variable

# if on_gitlab:
# pdf_path = f'/_static/{pdf_filename}'
# elif on_github:
# pdf_path = f'/_static/{pdf_filename}'
# else:
# # Default to local development path
# pdf_path = f'/docs/build/html/_static/{pdf_filename}'
if on_gitlab:
pdf_path = f'/_static/{pdf_filename}'
elif on_github:
pdf_path = f'/_static/{pdf_filename}'
else:
# Default to local development path
pdf_path = f'/docs/build/html/_static/{pdf_filename}'


pdf_path = f'/_static/{pdf_filename}'


# Use the provided content as the button text if available, otherwise default to the PDF filename
Expand Down

0 comments on commit 7f55864

Please sign in to comment.