Skip to content

Commit

Permalink
Merge pull request #168 from samjwu/watermark
Browse files Browse the repository at this point in the history
Remove Alpha Watermark
  • Loading branch information
samjwu committed May 5, 2023
2 parents f578e00 + 2ddfa87 commit 34df4e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/rocm_docs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ def _write_article_info(path: str, article_info: str) -> None:
page_html = file.read()
soup = bs4.BeautifulSoup(page_html, 'html.parser')

has_article_info = soup.find("div", {"id": "rocm-docs-core-article-info"})
if has_article_info == False or soup.article is None or soup.article.h1 is None:
has_article_info = soup.find("div", id="rocm-docs-core-article-info")
if has_article_info is not None or soup.article is None or soup.article.h1 is None:
return

soup.article.h1.insert_after(bs4.BeautifulSoup(article_info, 'html.parser'))
Expand Down
4 changes: 2 additions & 2 deletions src/rocm_docs/rocm_docs_theme/sections/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
{% include 'components/copyright.html' %}
</div>

<div id="rdc-watermark-container">
<!-- <div id="rdc-watermark-container">
<img id="rdc-watermark" src="{{ pathto('_static/images/alpha-watermark.svg',1) }}" alt="DRAFT watermark"/>
</div>
</div> -->

0 comments on commit 34df4e6

Please sign in to comment.