Skip to content

Commit

Permalink
Merge pull request #9 from ycechungAI/working1
Browse files Browse the repository at this point in the history
Working1
  • Loading branch information
Eugene Chung authored Sep 16, 2021
2 parents 43c8d6d + ed7671e commit 81d3eb9
Show file tree
Hide file tree
Showing 10 changed files with 2,960 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ var { argv } = require('yargs')

//Add to the array routesList to generate <a> in index.html
routesList.push({
url: createdFileName.replace(path.normalize(outputPath), '').substr(1).replaceAll(' ', '_'),
name: path.basename(createdFileName, '.html'),
url: createdFileName.replaceAll(' ', '_').replace(path.normalize(outputPath), '').substr(1),
name: path.basename(createdFileName.replaceAll(' ', '_'), '.html'),
});
await createIndexHtmlFile(routesList, stylesheet, outputPath);
} else {
Expand Down Expand Up @@ -218,7 +218,7 @@ var { argv } = require('yargs')

//Create the html file
let createdFileName = await createHtmlFile(
path.basename(noRootFilePath, '.txt'),
path.basename(noRootFilePath, '.txt').replaceAll(' ', '_'),
data,
stylesheet,
path.join(outputPath, path.dirname(noRootFilePath)).replaceAll(' ', '_'),
Expand Down
471 changes: 471 additions & 0 deletions dist/Silver_Blaze.html

Large diffs are not rendered by default.

309 changes: 309 additions & 0 deletions dist/The_Adventure_of_the_Six_Napoleans.html

Large diffs are not rendered by default.

519 changes: 519 additions & 0 deletions dist/The_Adventure_of_the_Speckled_Band.html

Large diffs are not rendered by default.

763 changes: 763 additions & 0 deletions dist/The_Naval_Treaty.html

Large diffs are not rendered by default.

445 changes: 445 additions & 0 deletions dist/The_Red_Headed_League.html

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<title>Home</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<<<<<<< HEAD
<link rel="stylesheet" href="sample_css/test.css">
=======
<style>
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@700&display=swap');

Expand Down Expand Up @@ -70,16 +73,25 @@
color: #3B82F6;
}
</style>
>>>>>>> 5092fc77a613991eb73dad800f2cb3d6697ccacc
</head>
<body>
<h1>Home menu</h1>
<h2>Summary</h2>
<ul>
<<<<<<< HEAD
<li><a href='Silver_Blaze.html'>Silver_Blaze</a></li>
<li><a href='The_Adventure_of_the_Six_Napoleans.html'>The_Adventure_of_the_Six_Napoleans</a></li>
<li><a href='The_Adventure_of_the_Speckled_Band.html'>The_Adventure_of_the_Speckled_Band</a></li>
<li><a href='The_Naval_Treaty.html'>The_Naval_Treaty</a></li>
<li><a href='The_Red_Headed_League.html'>The_Red_Headed_League</a></li>
=======
<li><a href='Silver_Blaze.html'>Silver Blaze</a></li>
<li><a href='The_Adventure_of_the_Six_Napoleans.html'>The Adventure of the Six Napoleans</a></li>
<li><a href='The_Adventure_of_the_Speckled_Band.html'>The Adventure of the Speckled Band</a></li>
<li><a href='The_Naval_Treaty.html'>The Naval Treaty</a></li>
<li><a href='The_Red_Headed_League.html'>The Red Headed League</a></li>
>>>>>>> 5092fc77a613991eb73dad800f2cb3d6697ccacc
<li><a href='test/test2/test.html'>test</a></li>
<li><a href='test/test2.html'>test2</a></li>
<li><a href='test/test3.html'>test3</a></li>
Expand Down
10 changes: 10 additions & 0 deletions dist/test/test2.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
<title>Document</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<<<<<<< HEAD
<link rel="stylesheet" href="sample_css/test.css">
</head>
<body>
<h1>Document</h1>
<p>tthis is a test2</p>

<p>checking somethingis it working</p>
=======
<style>
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@700&display=swap');

Expand Down Expand Up @@ -76,6 +85,7 @@ <h1>Document</h1>
<p>tthis_is_a_test2</p>

<p>checking_somethingis_it_working</p>
>>>>>>> 5092fc77a613991eb73dad800f2cb3d6697ccacc

</body>
</html>
Expand Down
8 changes: 8 additions & 0 deletions dist/test/test2/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
<title>Document</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<<<<<<< HEAD
<link rel="stylesheet" href="sample_css/test.css">
</head>
<body>
<h1>Document</h1>
<p>this is a sample paragraphanother sample paragraph</p>
=======
<style>
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@700&display=swap');

Expand Down Expand Up @@ -74,6 +81,7 @@
<body>
<h1>Document</h1>
<p>this_is_a_sample_paragraphanother_sample_paragraph</p>
>>>>>>> 5092fc77a613991eb73dad800f2cb3d6697ccacc

</body>
</html>
Expand Down
Loading

0 comments on commit 81d3eb9

Please sign in to comment.