-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from vinayakjaas/documentation
Documentation Codebase
- Loading branch information
Showing
23 changed files
with
319 additions
and
623 deletions.
There are no files selected for viewing
12 changes: 0 additions & 12 deletions
12
Pdf_Library/Documentation/blog/2019-05-28-first-blog-post.md
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
Pdf_Library/Documentation/blog/2019-05-29-long-blog-post.md
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
Pdf_Library/Documentation/blog/2021-08-01-mdx-blog-post.mdx
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-93.9 KB
Pdf_Library/Documentation/blog/2021-08-26-welcome/docusaurus-plushie-banner.jpeg
Binary file not shown.
25 changes: 0 additions & 25 deletions
25
Pdf_Library/Documentation/blog/2021-08-26-welcome/index.md
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,37 @@ | ||
--- | ||
sidebar_position: 1 | ||
--- | ||
# Introduction | ||
|
||
# Tutorial Intro | ||
## PDFViewer UI | ||
|
||
Let's discover **Docusaurus in less than 5 minutes**. | ||
PDFViewer UI is a comprehensive library that empowers users to choose and open PDF files through a user-friendly interface. The library is designed to seamlessly integrate with React applications, providing a smooth experience for rendering and viewing PDFs. With a focus on flexibility, the PDFViewer UI allows PDFs to be fetched from various sources, including user uploads and cloud databases, and offers robust functionality for displaying and managing PDF documents. | ||
|
||
## Getting Started | ||
|
||
Get started by **creating a new site**. | ||
## PDF Database Renderer Frontend | ||
|
||
Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new)**. | ||
The PDFDatabase Renderer Frontend is built using React and leverages the `react-pdf` library to handle PDF rendering. It offers a clean and intuitive interface for users to upload and view PDF files, with options to show or hide the PDF as needed. | ||
|
||
### What you'll need | ||
- **Choose a PDF file UI**: Users can select and upload PDF files using an easy-to-use upload form. | ||
- **Open and view PDF files**: Once uploaded, PDFs are rendered directly on the UI for immediate viewing. | ||
- **Toggle visibility**: Users can show or hide the rendered PDF using a dedicated button, providing control over the display. | ||
|
||
- [Node.js](https://nodejs.org/en/download/) version 18.0 or above: | ||
- When installing Node.js, you are recommended to check all checkboxes related to dependencies. | ||
## PDF Database Renderer Backend | ||
|
||
## Generate a new site | ||
The PDF Database Renderer Backend is a robust Node.js application designed to store and manage PDFs in a MongoDB database. It provides secure and efficient handling of file uploads and retrievals, ensuring that PDF data is stored and accessed seamlessly. | ||
|
||
Generate a new Docusaurus site using the **classic template**. | ||
- **Server-side implementation**: Comprehensive server-side code to handle the PDF rendering backend. | ||
- **MongoDB integration**: Configured to use MongoDB as the primary database for storing PDF files. | ||
- **File handling with Multer**: Utilizes Multer for managing multipart/form-data, facilitating smooth file uploads. | ||
- **API endpoints for PDF retrieval**: Offers API endpoints to retrieve stored PDFs, making it easy to integrate with frontend applications. | ||
- **Error handling and validation**: Ensures robust error handling and validation mechanisms for file uploads, maintaining data integrity. | ||
|
||
The classic template will automatically be added to your project after you run the command: | ||
## PDF Rendering Library | ||
|
||
```bash | ||
npm init docusaurus@latest my-website classic | ||
``` | ||
The PDF Rendering Library is a versatile tool designed to render PDFs from diverse sources, including user uploads, MongoDB, and educational platforms like SCORM Cloud. It provides a consistent interface to simplify the integration of PDF functionalities into various applications. | ||
|
||
You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor. | ||
- **Render course materials and assessments**: Capable of displaying course-related PDFs and assessments stored in SCORM Cloud. | ||
- **Display and manage MongoDB PDFs**: Facilitates the rendering and management of PDFs stored in MongoDB databases. | ||
- **User upload functionality**: Allows users to upload their PDF documents, which can then be viewed and downloaded through the interface. | ||
|
||
The command also installs all necessary dependencies you need to run Docusaurus. | ||
|
||
## Start your site | ||
|
||
Run the development server: | ||
|
||
```bash | ||
cd my-website | ||
npm run start | ||
``` | ||
|
||
The `cd` command changes the directory you're working with. In order to work with your newly created Docusaurus site, you'll need to navigate the terminal there. | ||
|
||
The `npm run start` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/. | ||
|
||
Open `docs/intro.md` (this page) and edit some lines: the site **reloads automatically** and displays your changes. |
4 changes: 2 additions & 2 deletions
4
Pdf_Library/Documentation/docs/tutorial-basics/_category_.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"label": "Tutorial - Basics", | ||
"label": "Pdf Library", | ||
"position": 2, | ||
"link": { | ||
"type": "generated-index", | ||
"description": "5 minutes to learn the most important Docusaurus concepts." | ||
"description": "Pdf Library Introduction " | ||
} | ||
} |
23 changes: 0 additions & 23 deletions
23
Pdf_Library/Documentation/docs/tutorial-basics/congratulations.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.