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

Improve the examples format on the README file #67

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ali-turki
Copy link

improved formatting added syntax highlighted to examples snippets, I've not changed any description or even a word just formatting.

improved code formatting and added syntax highlighted without changing any description or even word.
Copy link

@jamiecarter7 jamiecarter7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var loadingTask = pdf.createLoadingTask('https://cdn.mozilla.net/pdfjs/tracemonkey.pdf');

should read:

var loadingTask = VuePdf.createLoadingTask('https://cdn.mozilla.net/pdfjs/tracemonkey.pdf');

@ali-turki
Copy link
Author

Thanks, it's done.

README.md Outdated
<template>
<pdf src="./static/relativity.pdf"></pdf>
<vue-pdf src="./static/relativity.pdf" />
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good, just for the record: Self-closing components

this.numPages = pdf.numPages;
});
},
components: {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

README.md Outdated
});
}
},
components: {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"components" =>top

#### @error <sup>Object<sup>
Triggered when an error occurred.

|Name|Attributes|Listen to|Description|
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible to avoid line-break for the "Listen to" column ?

README.md Outdated
<vue-pdf
src="https://cdn.mozilla.net/pdfjs/tracemonkey.pdf"
@num-pages="pageCount = $event"
@page-loaded="currentPage = $event" />
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please move /> to the newt line, aligned with <vue-pdf

README.md Outdated
:key="i"
:src="src"
:page="i"
style="display: inline-block; width: 25%" />
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/> => next line

README.md Outdated
</button>
<vue-pdf
ref="myPdfComponent"
src="https://cdn.mozilla.net/pdfjs/tracemonkey.pdf" />
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/> => next line

README.md Outdated
<button @click="logContent">log content</button>
<vue-pdf
ref="myPdfComponent"
src="https://cdn.mozilla.net/pdfjs/tracemonkey.pdf" />
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/> => next line

README.md Outdated
@password="password"
@progress="loadedRatio = $event"
@error="error"
@num-pages="numPages = $event" />
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/> => next line

* move components closing tag to a new line.
* move components object to the top.
@ali-turki
Copy link
Author

@FranckFreiburger almost all are done.

Repository owner deleted a comment from CristinaGuan Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants