Skip to content
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

feat: embedded pdf previews #769

Draft
wants to merge 7 commits into
base: primary
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/assets/FBW-A32NX-SOP.pdf
Binary file not shown.
20 changes: 18 additions & 2 deletions docs/pilots-corner/SOP.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,28 @@ They are available for download or preview online via the links below.

An in-flight checklist for flight crew operations. Items critical regarding flight safety are on this list.

[Download](https://github.com/flybywiresim/manuals/raw/master/pdf/A32NX%20Documentation/FBW%20A32NX%20Checklist.pdf){ .md-button } [:fontawesome-brands-github:{: .github } Online Preview](https://github.com/flybywiresim/manuals/blob/master/pdf/A32NX%20Documentation/FBW%20A32NX%20Checklist.pdf){ target=new .md-button }
[Download](https://github.com/flybywiresim/manuals/raw/master/pdf/A32NX%20Documentation/FBW%20A32NX%20Checklist.pdf){ .md-button }

{% with pdf_file = "/assets/FBW_A32NX_CHECKLIST.pdf" %}

<object data="{{ pdf_file }}" type="application/pdf" class="pdf-embed">
<embed src="{{ pdf_file }}" type="application/pdf" />
</object>

{% endwith %}

## Normal Procedures

This document can be considered as an overview of what to do during each phase of flight, with remarks about each location and item.

[Download](https://github.com/flybywiresim/manuals/raw/master/pdf/A32NX%20Documentation/FBW%20A32NX%20SOP.pdf){ .md-button } [:fontawesome-brands-github:{: .github } Online Preview](https://github.com/flybywiresim/manuals/blob/master/pdf/A32NX%20Documentation/FBW%20A32NX%20SOP.pdf){ target=new .md-button }
[Download](https://github.com/flybywiresim/manuals/raw/master/pdf/A32NX%20Documentation/FBW%20A32NX%20SOP.pdf){ .md-button }

{% with pdf_file = "/assets/FBW-A32NX-SOP.pdf" %}

<object data="{{ pdf_file }}" type="application/pdf" class="pdf-embed">
<embed src="{{ pdf_file }}" type="application/pdf" />
</object>

{% endwith %}


24 changes: 24 additions & 0 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,27 @@ tbody {
background-color: #00E0FE;
}

/*PDF Styling*/
.pdf-embed {
width: 100%;
height: 800px;
border: 1px solid black;
background-color: white;
}

/* Responsive Styling PDF */

@media screen and (max-width: 768px) {
.pdf-embed {
height: 600px;

}
}

@media screen and (max-width: 480px) {
.pdf-embed {
height: 600px;
}
}


6 changes: 5 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ theme:
features:
- navigation.tabs
- navigation.tabs.sticky
# Removed this feature again as it's breaking TOC navigation on reported-issues.md
- navigation.instant
- navigation.top
- navigation.tracking
Expand Down Expand Up @@ -152,3 +151,8 @@ markdown_extensions:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
md_in_html: {} # Allows markdown to be used in HTML
pymdownx.pathconverter: # Allows for absolute linking of images and other assets
base_path: 'docs' # repository root
relative_path: '' # default ''
absolute: true # default: false
tags: 'a script img link object embed'