Skip to content

Commit

Permalink
refactor: move communication to blog
Browse files Browse the repository at this point in the history
  • Loading branch information
Priestch committed Nov 5, 2024
1 parent e4d0b60 commit 93e4b4f
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ make it easier to integrate PDF viewer to your project.

# Online Demos

See https://priestch.github.io/document-viewer/demos/#/custom-toolbar
See https://priestch.github.io/document-viewer/demos/

# Docs

Expand Down
9 changes: 4 additions & 5 deletions docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,16 @@ const config = {
{ text: "Npm Package", link: "https://www.npmjs.com/package/@document-kits/viewer" },
{ text: "Releases", link: "https://github.com/Priestch/document-viewer/tags" },
{ text: "Useful Resources", link: "/resources" },
{
text: "Official FAQ",
link: "https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions",
},
{
text: "About PDF.js",
items: [
{ text: "Learned Knowledge", link: "/learned-knowledge/" },
{ text: "Architecture", link: "/architecture" },
{ text: "Common Pitfalls", link: "/pitfalls" },
{ text: "Threads Communication", link: "/communication" },
{
text: "Official FAQ",
link: "https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions",
},
],
},
],
Expand Down
2 changes: 1 addition & 1 deletion docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ head:

# PDF.js Architecture

![Overview of the PDF.js Architecture](https://hacks.mozilla.org/files/2021/09/pdfjs_architecture.png)
![Overview of the PDF.js Architecture](./assets/pdfjs_architecture.png)

[Read more](https://hacks.mozilla.org/2021/10/implementing-form-filling-and-accessibility-in-the-firefox-pdf-viewer/)

Expand Down
Binary file added docs/assets/pdfjs_architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/blog/3-ways-to-display-pdf-in-html.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Learn how to display PDF files in your HTML app with three ways, in
head:
- - link
- rel: canonical
href: https://priestch.github.io/document-viewer/docs/learned-knowledge/
href: https://priestch.github.io/document-viewer/docs/blog/3-ways-to-display-pdf-in-html.html
---

# Three Ways to display PDF file in HTML
Expand Down
11 changes: 11 additions & 0 deletions docs/blog/communication-between-the-main-and-worker-thread.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Communication between Main and Worker Threads
head:
- - link
- rel: canonical
href: https://priestch.github.io/document-viewer/docs/blog/communication-between-the-main-and-worker-thread.html
---

# Communication between Main and Worker Threads

![between main and worker thread](../assets/communication.svg)
1 change: 1 addition & 0 deletions docs/blog/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Blogs

- [Three ways to Display PDF in HTML](/blog/3-ways-to-display-pdf-in-html)
- [Communication between the main and worker thread](/blog/communication-between-the-main-and-worker-thread)
11 changes: 0 additions & 11 deletions docs/communication.md

This file was deleted.

0 comments on commit 93e4b4f

Please sign in to comment.