Skip to content

Commit

Permalink
DISTPG-631 Added PDF fixes and a pixel to docs (#429)
Browse files Browse the repository at this point in the history
modified:   _resource/overrides/main.html
	new file:   docs/css/extra.css
	modified:   mkdocs-base.yml
	modified:   mkdocs-pdf.yml
	deleted:    mkdocs-percona.yml
	modified:   mkdocs.yml
  • Loading branch information
nastena1606 authored Aug 7, 2023
1 parent 24c06e2 commit 5c06c1c
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 4 deletions.
1 change: 1 addition & 0 deletions _resource/overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ <h4>Contact Us </h4>
<p>For free technical help, visit the Percona <a class="reference external" href="https://forums.percona.com/c/postgresql/25?utm_campaign=Doc%20pages" target="_blank">Community Forum</a>.<br>
<p>To report bugs or submit feature requests, open a <a class="reference external" href="https://jira.percona.com/projects/DISTPG/issues/" target="_blank">JIRA</a> ticket.<br>
<p>For paid <a class="reference external" href="https://www.percona.com/services/support"> support </a> and <a class="reference external" href="https://www.percona.com/services/managed-services"> managed </a> or <a class="reference external" href="https://www.percona.com/services/consulting">consulting services </a>, contact <a class="reference external" href="https://www.percona.com/about-percona/contact" target="_blank">Percona Sales</a>.</p>
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=b95a2b04-c5c7-47f9-bb4e-b7fc13c3ab0d" />
</article>
</div>
</div>
Expand Down
7 changes: 7 additions & 0 deletions docs/css/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@media print {
/* Adjusts positioning of admonition icon */
.md-typeset :is(.admonition-title,summary):before {
top: 0.6rem;
left: 0.6rem;
}
}
1 change: 1 addition & 0 deletions mkdocs-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ extra_css:
- https://unicons.iconscout.com/release/v3.0.3/css/line.css
- https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css
- css/percona.css
- css/extra.css

extra_javascript:
- js/version-select.js
Expand Down
5 changes: 2 additions & 3 deletions mkdocs-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
INHERIT: mkdocs-base.yml

markdown_extensions:
- pymdownx.superfences
- pymdownx.tabbed
- admonition
pymdownx.tabbed: {}
admonition: {}
26 changes: 25 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,31 @@

INHERIT: mkdocs-base.yml

site_url: https://docs.percona.com/postgresql

site_url: "https://docs.percona.com/postgresql/"

theme:
name: material
custom_dir: _resource/overrides/

# Theme features

features:
- search.highlight
- navigation.top
- navigation.tracking
- content.tabs.link
- content.action.edit
- content.action.view
- content.code.copy

# Plugins
plugins:
section-index: {}

#markdown_extensions:
# - pymdownx.tabbed:
# alternate_style: true


#Google Analytics configuration
Expand Down

0 comments on commit 5c06c1c

Please sign in to comment.