-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(internal): added
documentation-tools
module for doc utiliti…
…es. * INTERNAL * (#281) * bugfix(highlight:) Remove only empty lines at the beggining and end of the content so content new lines arent removed * check indentention on first code line as a guide * remove `html` lang workaround so code parsing is more generic now * fixed indendation in demo * bugfix(highlight): Use Renderer to limit access to native DOM and DomSanitizer to prevent XSS issues. * feature(highlight): Added [content] input to td-highlight to load content dynamically. * load README.md in highlight docs * update README.md for highlight * remove info thats already in README.md * update docblock in markdown * polish README.md * move scss rules so we can apply any pre-built theme instead of the covalent-theme * update themeing in markdown and highlight * comment pre-built theme in theme.scss * feature(highlight): Mimicking VS Dark+ theme as closely as possible by default in covalent-highlight-theme * changed color for regexp and link * code-health(highlight): Added initial set of unit-tests. * wrong title in README.md * replace npm code block with bash * fix README.md in markdown * point to the main coveralls badge instead of develop branch * remove methods and use regexp to remove leading and trailing new empty lines * feature(markdown): Remove only empty lines at the beginning and end of code content only * fixed indentation * renamed components docs dir into views * fixed app.module and app.routes * was using a diff component by mistake * initial iteration on pretty-markdown (name not final) * created readme-loader and documentation-tools module for simpler docs * removed generic readme code from markdown and highlight and use `readme-loader` * changed back to `components` dir since this is better done in a separate PR * renamed so variable is not shadowed * PoC to add a new replacement easy (added MdCheckbox) + fixed sort * override checkbox disabled color in pretty-markdown * added `Td` preffix in the readme-loader.component * added IReplacerFunc and do generics the right way * polished code * theme `<code>` elements inside `markdown` like highlight in the pretty-markdown component * update(docs): latest theme imports * update(docs): bash instead of html for cli commands * update(docs): accurate route creation * update(highlight): tweak a couple colors * update(pretty-markdown): adjust first H2 title styles
- Loading branch information
1 parent
3311d4a
commit 2570fa4
Showing
19 changed files
with
390 additions
and
95 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -6,24 +6,24 @@ | |
<h3>Covalent Quickstart</h3> | ||
<h4>Create a new repo based on the covalent-quickstart</h4> | ||
<p>Clone the covalent-quickstart into a new project folder (e.g. my-product).</p> | ||
<td-highlight lang="html"> | ||
<td-highlight lang="bash"> | ||
git clone https://github.com/Teradata/covalent-quickstart.git my-product | ||
cd my-product | ||
</td-highlight> | ||
<p>Remove the git directory to start clean</p> | ||
<td-highlight lang="html"> | ||
<td-highlight lang="bash"> | ||
rm -rf .git | ||
</td-highlight> | ||
<h3>Create a new Git repository for your product</h3> | ||
<p>You could start writing code now and throw it all away when you're done. If you'd rather preserve your work under source control, consider taking the following steps.</p> | ||
<p>Initialize this project as a local git repo and make the first commit:</p> | ||
<td-highlight lang="html"> | ||
<td-highlight lang="bash"> | ||
git init | ||
git add . | ||
git commit -m "Initial commit" | ||
</td-highlight> | ||
<p>Create a remote repository for this project on the service of your choice.</p> | ||
<td-highlight lang="html"> | ||
<td-highlight lang="bash"> | ||
git remote add origin | ||
git push -u origin master | ||
</td-highlight> | ||
|
@@ -38,28 +38,28 @@ <h4>Prerequisites</h4> | |
<li>TSLint (for code style)</li> | ||
</ul> | ||
<h4>If you don't have the Angular CLI, install:</h4> | ||
<td-highlight lang="html"> | ||
<td-highlight lang="bash"> | ||
npm i -g angular-cli@latest | ||
</td-highlight> | ||
<h4>Install Typescript 2.0:</h4> | ||
<td-highlight lang="html"> | ||
<td-highlight lang="bash"> | ||
npm install -g [email protected] | ||
</td-highlight> | ||
<h4>To install Protractor & TSLint for testing:</h4> | ||
<td-highlight lang="html"> | ||
<td-highlight lang="bash"> | ||
npm install -g protractor | ||
npm install -g tslint | ||
</td-highlight> | ||
<h4>Then update the webdriver manager:</h4> | ||
<td-highlight lang="html"> | ||
<td-highlight lang="bash"> | ||
webdriver-manager update | ||
</td-highlight> | ||
<h4>Install Node packages</h4> | ||
<td-highlight lang="html"> | ||
<td-highlight lang="bash"> | ||
npm i | ||
</td-highlight> | ||
<h4>Run the Angular-CLI local server</h4> | ||
<td-highlight lang="html"> | ||
<td-highlight lang="bash"> | ||
ng serve | ||
</td-highlight> | ||
<div layout="row" class="push-top"> | ||
|
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
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.