I'm a Front-end developer from Sร i Gรฒn, Vietnam, currently living in Toronto, Canada.
๐ Checkout my personal website: https://andrewnt.dev
๐ง Contact me: [email protected]
๐ Let's connect: https://www.linkedin.com/in/andrewnt219/
Home Page: https://paper-sample.vercel.app/
License: MIT License
I'm a Front-end developer from Sร i Gรฒn, Vietnam, currently living in Toronto, Canada.
๐ Checkout my personal website: https://andrewnt.dev
๐ง Contact me: [email protected]
๐ Let's connect: https://www.linkedin.com/in/andrewnt219/
try to parse a title from your input files. If there is a title, it will be the first line followed by two blank lines. In your generated HTML, use this to populate the <title>...</title>
and add an <h1>...</h1>
to the top of the <body>
.
Exiting with process 1 to a user might not be the most ideal. Should show detailed message instead
allow the user to specify a different output directory using --output
or -o
. If not specified, dist
will be used, but if the user specifies a different output path, use that. Print an error if the specified output path is not a valid directory.
allow the input to be a deep tree of files and folders. That is, if the user specifies a folder for --input
, check to see if any of the items contained within are folders and recursively parse those as well.
Create the following features:
.md
extension filesSimilar to Template
, read the index.html
template and populate with content
improve the look and feel of your generated HTML pages using a default stylesheet that you design. Make them responsive, use beautiful fonts and colours, improve the layout and readability of the text.
You are hard-coding the version number, but you also maintain it at crate level. I would suggest reading this dynamically from the env
When the program is ran from a dist folder another is created possibly due to relative pathing
When in a subdirectory error: Fail to read template file: No such file or directory (os error 2)
is displayed.
if the user specifies a folder for the input, automatically generate an index.html
file, which has relative links to each of the generated HTML files.
Overrides build command and output dir in Vercel.
allow the user to optionally specify a --stylesheet
or -s
URL to a CSS stylesheet to be used in the <head>
of your generated HTML files. For example: https://cdnjs.cloudflare.com/ajax/libs/tufte-css/1.8.0/tufte.min.css or (https://cdn.jsdelivr.net/npm/water.css@2/out/water.css)[https://cdn.jsdelivr.net/npm/water.css@2/out/water.css]
Right now, we are differentiating only by directories and files. If one were to pass a file of whatever extension, it would be treated as a txt
file always.
I suggest to filter the files we can and cannot accept by their extension. This would help us to also use a parser depending on the type of the file.
In https://github.com/Andrewnt219/paper/blob/main/src/cli/generator.rs#L72, you want recognized
vs. recognize
.
Problem generating file '.\Sherlock-Holmes-Selected-Stories\The Adventure of the Six Napoleans.txt': The system cannot find the path specified. (os error 3)
$ cargo run -- -i '.\Sherlock-Holmes-Selected-Stories\The Adventure of the Six Napoleans.txt'
The Adventure of the Six Napoleans.txt
appears in dist
<p>...</p>
. For example, given the following input file:This is the first paragraph.
This is the second paragraph.
Should be transformed into:
<p>This is the first paragraph.</p>
<p>This is the second paragraph.</p>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.