diff --git a/README.md b/README.md index ce7d2c2..5e0ad87 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 1e3b405..2dbc4bc 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -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", + }, ], }, ], diff --git a/docs/architecture.md b/docs/architecture.md index e5fdd6c..85ea61d 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -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/) diff --git a/docs/assets/pdfjs_architecture.png b/docs/assets/pdfjs_architecture.png new file mode 100644 index 0000000..17ac2aa Binary files /dev/null and b/docs/assets/pdfjs_architecture.png differ diff --git a/docs/blog/3-ways-to-display-pdf-in-html.md b/docs/blog/3-ways-to-display-pdf-in-html.md index 4e129ba..653556b 100644 --- a/docs/blog/3-ways-to-display-pdf-in-html.md +++ b/docs/blog/3-ways-to-display-pdf-in-html.md @@ -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 diff --git a/docs/blog/communication-between-the-main-and-worker-thread.md b/docs/blog/communication-between-the-main-and-worker-thread.md new file mode 100644 index 0000000..f47ad40 --- /dev/null +++ b/docs/blog/communication-between-the-main-and-worker-thread.md @@ -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) diff --git a/docs/blog/index.md b/docs/blog/index.md index ceaecad..e0c0294 100644 --- a/docs/blog/index.md +++ b/docs/blog/index.md @@ -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) diff --git a/docs/communication.md b/docs/communication.md deleted file mode 100644 index bc43929..0000000 --- a/docs/communication.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: The Communication between Main and Worker Threads -head: - - - link - - rel: canonical - href: https://priestch.github.io/document-viewer/docs/communication.html ---- - -# Main and worker thread communication - -![between main and worker thread](./assets/communication.svg)