From 24a2734ee5d408539be7f88ea1784c59e2f4eef9 Mon Sep 17 00:00:00 2001 From: Shahar Naveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Fri, 28 Jun 2024 14:40:22 +0300 Subject: [PATCH 1/4] Create pdf.md --- .../content/docs/guide/shortcodes/pdf.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 exampleSite/content/docs/guide/shortcodes/pdf.md diff --git a/exampleSite/content/docs/guide/shortcodes/pdf.md b/exampleSite/content/docs/guide/shortcodes/pdf.md new file mode 100644 index 0000000..9c5762f --- /dev/null +++ b/exampleSite/content/docs/guide/shortcodes/pdf.md @@ -0,0 +1,18 @@ +--- +title: PDF +--- + +## Example +{{< pdf "https://dagrs.berkeley.edu/sites/default/files/2020-01/sample.pdf" >}} + +## Usage + +### With URL +``` +{{< pdf "https://dagrs.berkeley.edu/sites/default/files/2020-01/sample.pdf" >}} +``` + +### With Path +``` +{{< pdf "path/to/your/pdf/file.pdf" >}} +``` From 2355432542dd7c4897fd18062033f1604e69f546 Mon Sep 17 00:00:00 2001 From: Shahar Naveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Fri, 28 Jun 2024 15:36:43 +0300 Subject: [PATCH 2/4] Update pdf.md --- exampleSite/content/docs/guide/shortcodes/pdf.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/exampleSite/content/docs/guide/shortcodes/pdf.md b/exampleSite/content/docs/guide/shortcodes/pdf.md index 9c5762f..ff0b76c 100644 --- a/exampleSite/content/docs/guide/shortcodes/pdf.md +++ b/exampleSite/content/docs/guide/shortcodes/pdf.md @@ -1,18 +1,17 @@ --- -title: PDF +title: Pdf --- ## Example {{< pdf "https://dagrs.berkeley.edu/sites/default/files/2020-01/sample.pdf" >}} ## Usage - ### With URL -``` +```markdown {{< pdf "https://dagrs.berkeley.edu/sites/default/files/2020-01/sample.pdf" >}} ``` ### With Path -``` +```markdown {{< pdf "path/to/your/pdf/file.pdf" >}} ``` From 33dbd4561c0b5a04c6857e1fcdbb446734d6bf08 Mon Sep 17 00:00:00 2001 From: Shahar Naveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Fri, 28 Jun 2024 15:39:34 +0300 Subject: [PATCH 3/4] Escape PDF shortcode examples --- exampleSite/content/docs/guide/shortcodes/pdf.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exampleSite/content/docs/guide/shortcodes/pdf.md b/exampleSite/content/docs/guide/shortcodes/pdf.md index ff0b76c..cbc046b 100644 --- a/exampleSite/content/docs/guide/shortcodes/pdf.md +++ b/exampleSite/content/docs/guide/shortcodes/pdf.md @@ -8,10 +8,10 @@ title: Pdf ## Usage ### With URL ```markdown -{{< pdf "https://dagrs.berkeley.edu/sites/default/files/2020-01/sample.pdf" >}} +{{}} ``` ### With Path ```markdown -{{< pdf "path/to/your/pdf/file.pdf" >}} +{{}} ``` From ff565f207773c8f2803a6552c657af51f7e9ab30 Mon Sep 17 00:00:00 2001 From: Shahar Naveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Fri, 28 Jun 2024 15:45:00 +0300 Subject: [PATCH 4/4] Remove markdown syntax highlight --- exampleSite/content/docs/guide/shortcodes/pdf.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exampleSite/content/docs/guide/shortcodes/pdf.md b/exampleSite/content/docs/guide/shortcodes/pdf.md index cbc046b..460e5d8 100644 --- a/exampleSite/content/docs/guide/shortcodes/pdf.md +++ b/exampleSite/content/docs/guide/shortcodes/pdf.md @@ -7,11 +7,11 @@ title: Pdf ## Usage ### With URL -```markdown +``` {{}} ``` ### With Path -```markdown +``` {{}} ```