${code}`);
}
-// This registers your plugin
+// DO NOT FORGET TO REGISTER THE PLUGIN
registerPlugin('fileHandler', 'csv', {handler: csvFilePlugin});
-
module.exports.csvFilePlugin = csvFilePlugin;
```
### File Handler Plugin Examples
-Here are links to the built-in **render plugins** in Scully:
+Here are some links to built-in **render plugins** in Scully:
- [asciidoc Plugin](../scully/fileHanderPlugins/asciidoc.ts)
- [markdown Plugin](../scully/fileHanderPlugins/markdown.ts)
-
-[Back to top](#plugins)
-
-[Full Documentation ➡️](scully.md)
diff --git a/docs/pre-requisites.md b/docs/pre-requisites.md
index 919c914cb..133da7f62 100644
--- a/docs/pre-requisites.md
+++ b/docs/pre-requisites.md
@@ -23,7 +23,9 @@ Then, create a new application.
ng new my-scully-app
```
-#### IMPORTANT: _Scully depends on the application's router module in order to generate the website's pages_
+#### IMPORTANT:
+
+_Scully depends on the application's router module in order to generate the website's pages_
Add a router module with the following command:
@@ -33,7 +35,9 @@ ng generate module app-routing --flat --module=app
Find more info about the Angular CLI here [👉 angular.io/cli](https://angular.io/cli)
-#### IMPORTANT: _Scully uses Chromium. Therefore, your Operating System, as well as its administrator rights must allow its installation and execution._
+#### IMPORTANT:
+
+_Scully uses Chromium. Therefore, your Operating System, as well as its administrator rights must allow its installation and execution._
### Node version:
diff --git a/docs/recommended-plugins.md b/docs/recommended-plugins.md
index 14a2fe9da..cf926af0e 100644
--- a/docs/recommended-plugins.md
+++ b/docs/recommended-plugins.md
@@ -1,26 +1,29 @@
+---
+title: Recommended Plugins
+order: 1200
+---
+
# Community Plugins
-The following is a list of our recommended Scully plugins.
+The following list contains recommended plugins for Scully.
-_If you would like to add a plugin to this list, please submit a PR to the `docs/recommended-plugins.md`._
+_If you would like to add a plugin to the list, please submit a PR to the `docs/recommended-plugins.md`._
## Official Plugins
-- `json` router plugin
-- `contentFolder` router and render plugin
-- `ignored` router plugin
-- `adoc` render plugin
-- `md` render plugin
+- `json` - Router plugin
+- `contentFolder` - Router and render plugin
+- `ignored` - Router plugin
+- `adoc` - Render plugin
+- `md` - Render plugin
## Community Plugins
-- `minifyHtml` render plugin - [https://www.npmjs.com/package/scully-plugin-minify-html](https://www.npmjs.com/package/scully-plugin-minify-html)
-- `disableAngular` render plugin - [https://www.npmjs.com/package/scully-plugin-disable-angular](https://www.npmjs.com/package/scully-plugin-disable-angular)
-- `toc` render plugin - [https://www.npmjs.com/package/scully-plugin-toc](https://www.npmjs.com/package/scully-plugin-toc)
-- `regexHtml` render plugin - [https://www.npmjs.com/package/@gammastream/scully-plugin-regex](https://www.npmjs.com/package/@gammastream/scully-plugin-regex)
-- `sitemap` render plugin - [https://www.npmjs.com/package/@gammastream/scully-plugin-sitemap](https://www.npmjs.com/package/@gammastream/scully-plugin-sitemap)
-- `http404` render plugin - [https://www.npmjs.com/package/@gammastream/scully-plugin-http404](https://www.npmjs.com/package/@gammastream/scully-plugin-http404)
-- `fouc` render plugin - [https://www.npmjs.com/package/@notiz/scully-plugin-fouc](https://www.npmjs.com/package/@notiz/scully-plugin-fouc)
-- `lazyImages` render plugin - [https://www.npmjs.com/package/@notiz/scully-plugin-lazy-images](https://www.npmjs.com/package/@notiz/scully-plugin-lazy-images)
-
-[Full Documentation ➡️](scully.md)
+- `minifyHtml` - Render plugin - [https://www.npmjs.com/package/scully-plugin-minify-html](https://www.npmjs.com/package/scully-plugin-minify-html)
+- `disableAngular` - Render plugin - [https://www.npmjs.com/package/scully-plugin-disable-angular](https://www.npmjs.com/package/scully-plugin-disable-angular)
+- `toc` - Render plugin - [https://www.npmjs.com/package/scully-plugin-toc](https://www.npmjs.com/package/scully-plugin-toc)
+- `regexHtml` - Render plugin - [https://www.npmjs.com/package/@gammastream/scully-plugin-regex](https://www.npmjs.com/package/@gammastream/scully-plugin-regex)
+- `sitemap` - Render plugin - [https://www.npmjs.com/package/@gammastream/scully-plugin-sitemap](https://www.npmjs.com/package/@gammastream/scully-plugin-sitemap)
+- `http404` - Render plugin - [https://www.npmjs.com/package/@gammastream/scully-plugin-http404](https://www.npmjs.com/package/@gammastream/scully-plugin-http404)
+- `fouc` - Render plugin - [https://www.npmjs.com/package/@notiz/scully-plugin-fouc](https://www.npmjs.com/package/@notiz/scully-plugin-fouc)
+- `lazyImages` - Render plugin - [https://www.npmjs.com/package/@notiz/scully-plugin-lazy-images](https://www.npmjs.com/package/@notiz/scully-plugin-lazy-images)
diff --git a/docs/release-for-v8.md b/docs/release-for-v8.md
index 0e84dcfc1..656bd7fc0 100644
--- a/docs/release-for-v8.md
+++ b/docs/release-for-v8.md
@@ -1,8 +1,9 @@
---
-author: Sander Elias
+title: Angular v8.x.x Release
+order: 1300
---
-# Release an V8 library update.
+# Step for Releasing a v8.x.x library
1. checkout the `angular-8` branch
2. `rm -fr node_modules` remove version 9
diff --git a/docs/scully-cmd-line.md b/docs/scully-cmd-line.md
index 3fd1182fa..b449f69f8 100644
--- a/docs/scully-cmd-line.md
+++ b/docs/scully-cmd-line.md
@@ -3,9 +3,9 @@ title: Command Line Options
order: 400
---
-# Scully command line options
+# Scully Command Line Options
-Scully CLI has the following options available:
+The Scully CLI has the following options available:
- [Scully command line options](#scully-command-line-options)
@@ -25,13 +25,13 @@ Scully CLI has the following options available:
- [ssl-key](#ssl-key)
- [tds](#tds)
-## serve
+## Serve
```bash
npx scully serve
```
-This starts the scully server helper on its own. You can use this to inspect the result from Scully, or to speed up the scully proccess a bit. it does not _build_ the project, it only serves the angular build files, and the scully result files.
+Starts the scully server. This process does not _build_ the project. It only serves the Agular build files, and the Scully static files.
## noWatch
@@ -39,7 +39,7 @@ This starts the scully server helper on its own. You can use this to inspect the
npx scully --nw
```
-By default, Scully has the watchMode active, if you prefer to run scully only once, use this flag.
+By default, Scully has the watchMode active. Use this flag to run scully only once.
## showBrowser
@@ -47,7 +47,7 @@ By default, Scully has the watchMode active, if you prefer to run scully only on
npx scully --showBrowser
```
-Alias `--sb`. This will show the chromium browser that is rendering your application. Can be used to diagnose some issues
+Alias `--sb`. Shows the chromium browser rendering the application.
## showGuessError
@@ -55,7 +55,7 @@ Alias `--sb`. This will show the chromium browser that is rendering your applica
npx scully --showGuessError
```
-Alias `--sge`. This shows errors from Guess-Parse to the console.
+Alias `--sge`. Displays Guess-Parse's errors in the console.
## configFile
@@ -63,7 +63,7 @@ Alias `--sge`. This shows errors from Guess-Parse to the console.
npx scully --configFile someName
```
-Alias `--cf`. loads a different config file. if used at the same time as `--project` the project flag takes precedence.
+Alias `--cf`. Loads a different config file. If it is used at the same time as the `--project` flag, the project flag takes precedence.
## project
@@ -71,7 +71,7 @@ Alias `--cf`. loads a different config file. if used at the same time as `--proj
npx scully --project someName
```
-Alias `--pr`. This enables you to select a different project. Scully by default uses the project that is the default project of the Angular CLI. When you want to run for another project, you can use this option, or use the Angular CLI to set another default project.
+Alias `--pr`. It is used to select a different project. Scully uses the default project from generated by the the Angular CLI.
## baseFilter
@@ -79,11 +79,15 @@ Alias `--pr`. This enables you to select a different project. Scully by default
npx scully --baseFilter /someRoute
```
-Alias `--bf`. This enable to Scully to start to render an specific route.
+Alias `--bf`. Enables Scully to start rendering a specific route.
## proxyConfig
-Alias `--proxy` takes a relative filename filename for a proxy config file. for details look at [this](https://github.com/chimurai/http-proxy-middleware/blob/master/README.md). We use the same config format as [webpackDevServer](https://webpack.js.org/configuration/dev-server/#devserverproxy)
+Alias `--proxy`. Takes a relative filename for a proxy config file.
+
+For more details look at [this](https://github.com/chimurai/http-proxy-middleware/blob/master/README.md).
+
+Scully uses the same config format as [webpackDevServer](https://webpack.js.org/configuration/dev-server/#devserverproxy).
## removeStaticDist
@@ -91,7 +95,7 @@ Alias `--proxy` takes a relative filename filename for a proxy config file. for
npx scully --removeStaticDist
```
-Alias `--RSD`. Remove the static folder generated by Scully in previous renders.
+Alias `--RSD`. Removes the static folder generated by Scully from previous renders.
## open
@@ -99,12 +103,11 @@ Alias `--RSD`. Remove the static folder generated by Scully in previous renders.
npx scully serve/watch --open
```
-Alias `--o`. Open the default browser and show the scully dist.
+Alias `--o`. Opens the default browser and renders the dist folder generated by Scully.
## scanRoutes
-Alias `--sr` or `--scan`
-Scan the application again to find unhandled routes. This normally only done once. When you add/change routes in the app, you need this parameter to discover the new routes.
+Alias `--sr` or `--scan`. Scans the application again to find unhandled routes. This is normally done just once. When routes in the application are added or changed, use this flag to discover all the new routes.
## ssl
@@ -112,7 +115,7 @@ Scan the application again to find unhandled routes. This normally only done onc
npx scully serve/watch --ssl
```
-Run the scully server with ssl.
+Runs the Scully server with ssl.
## ssl-cert
@@ -120,7 +123,7 @@ Run the scully server with ssl.
npx scully serve/watch --ssl --ssl-cert=./url/to/file
```
-Add url to ssl cert file for SSL server
+Adds a url to the ssl certificate file for a server with SSL.
## ssl-key
@@ -128,7 +131,7 @@ Add url to ssl cert file for SSL server
npx scully serve/watch --ssl --ssl-key=./url/to/file
```
-Add url to ssl key file for SSL server
+Adds a url to an ssl key file for a server with SSL.
## tds
@@ -136,11 +139,12 @@ Add url to ssl key file for SSL server
npx scully --tds
```
-This launches the Test Data Server. This is only helpful for demos. Currently the following APIs are
-supported on the test data server:
+Launches the Test Data Server. This is only helpful for demos.
+
+The following APIs are supported on the test data server:
-- `/users` - returns a list of users
-- `/users/:id` - returns just one user by id
-- `/posts` - returns a list of posts
-- `/posts/:id` - returns a post by id
-- `/slow/:delay` - returns a 200 after the delay has gone by. (eg: `/slow/2000` takes 2 seconds)
+- `/users` - Returns a list of users
+- `/users/:id` - Returns just one user by id
+- `/posts` - Returns a list of posts
+- `/posts/:id` - Returns a post by id
+- `/slow/:delay` - Returns 200 code after a delay has gone by. Eg: `/slow/2000` takes 2 seconds.
diff --git a/docs/scully-configuration.md b/docs/scully-configuration.md
index d82e9ea72..6bfb779de 100644
--- a/docs/scully-configuration.md
+++ b/docs/scully-configuration.md
@@ -5,12 +5,13 @@ order: 300
# Scully Configuration
-The center of every Scully project is the file `scully.config.js`. This config file must export the configuration for your
-scully build.
+The central part of a Scully project is the `scully.config.js` file. This file exports the Scully build configuration for an application.
-If you are starting to use Scully we highly recommend read the [Getting Started](getting-started.md) section,
-also if you want to enhance your project made with Scully, visit the [Utils](utils.md) section and see
-or teach to the community how to combine Scully with others tools.
+If you are new to Scully, it is recommended to read the [Getting Started](getting-started.md) documentation.
+
+If you want to enhance a Scully project, read the [Utils](utils.md) documentation.
+
+The `scully.config.js` file's structure is shown below:
- [Scully Configuration](#scully-configuration)
- [`ScullyConfig` Interface](#scullyconfig-interface)
@@ -19,7 +20,6 @@ or teach to the community how to combine Scully with others tools.
- [homeFolder](#homefolder)
- [outDir](#outdir)
- [distFolder](#distfolder)
- - [proxyConfig](proxyConfig)
- [routes](#routes)
- [handled Routes](#handled-routes)
- [unhandled Routes](#unhandled-routes)
@@ -51,27 +51,29 @@ export interface ScullyConfig {
}
```
-`ScullyConfig` interface provide the parameters to configure how Scully works in your project.
+The `ScullyConfig` interface provides parameters for configuring how Scully works in a project.
-## scullyConfig properties explained
+## scullyConfig File's Properties
### projectRoot
-`projectRoot` is reference to the path to the project where Scully will intervene.
+`projectRoot` - The project's from which Scully generates the static content.
+
+This property is **_mandatory_**, and Scully automatically sets this property to the default Angular project.
-This property is **_mandatory_**, Scully fills automatically post installation,
+### IMPORTANT:
-**_IMPORTANT_** this property won't be **_mandatory_** anymore in future releases.
+_this property won't be \*\*\_mandatory_\*\* anymore in future releases.\_
### homeFolder
-`homeFolder` is reference to your project root folder.
-This property is for internal use mostly, it defaults to the location where angular.json is.
+`homeFolder` - A reference to the Angular project's root folder. This property is for internal use, and it defaults to the angular.json file's location.
### outDir
-`outDir` is reference to the path folder which Scully will take to put the statics files.
-By default the path is:
+`outDir` - The folder's path where Scully leaves the statics files.
+
+The default path is:
```
./dist/static
@@ -79,86 +81,89 @@ By default the path is:
### distFolder
-`distFolder` option provide to Scully the path to the compiled Angular application. By default Scully take the path
-reading the `angular.json`. You can set it up follow your needs.
+`distFolder` - Path to the Angular application's dist folder. Scully takes the `angular.json` file's default path. This option can be modify according to the needs.
### routes
-Scully sort routes in 2 types:
+Scully has the two following types of routes:
-- handled
-- unhandled
+#### Handled Routes
-#### handled Routes
+Routes with static params.
-handled routes reference to routes with static params.
+Eg.
```
/foo/1
```
-#### unhandled Routes
+#### Unhandled Routes
+
+Routes with dynamic data.
-handled routes reference to routes with dynamic data.
+Eg.
```
/foo/:id
```
-## proxyConfig
-
-Takes a relative filename filename for a proxy config file. For details look at [this](https://github.com/chimurai/http-proxy-middleware/blob/master/README.md). We use the same config format as [webpackDevServer](https://webpack.js.org/configuration/dev-server/#devserverproxy).
-
-`routes` is a reference to all unhandled routes which Scully will transform to handled, using plugins.
-If you want to know more about plugins go to [Plugins](plugins.md) section.
+All unhandled need to be handle through plugins. For more information about router plugins read the [Plugins](plugins.md) documentation.
### extraRoutes
-The `extraRoutes` property allow to the developer add an array of unhandled routes to discover by Scully.
-These can be routes that exist in AngularJS, or in React, or in whatever Framework's router.
+`extraRoutes` - Allows developers to add an array of unhandled routes. These routes can exist in an AngularJS, React, or any other framework.
It can be handle `:string`, `Promise```ts
const foo = 'bar';
```
-Scully will parse the markdown using [_marked_](https://www.npmjs.com/package/marked).
-In the end the parsed result will look like this:
+Scully parses the markdown using [_marked_](https://www.npmjs.com/package/marked), and the parsed result looks like this:
```html
@@ -23,18 +24,16 @@ In the end the parsed result will look like this:
```
-As you can see _marked_ will use the CSS class prefix `language-` for tagging the code block with the appropriate language.
+_marked_ uses the CSS class prefix `language-` to tag the code block with an appropriate language.
-To highlight your code blocks, you can use [_prismjs_](https://prismjs.com) as it matches with the resulting class names. You can install prismjs using NPM and creating a service to highlight your code blocks:
+To highlight the code blocks use [_prismjs_](https://prismjs.com) and create a service like this:
```bash
npm i --save prismjs
ng g s highlight
```
-The service will include all languages you need and probably the clipboard library to simply copy the code etc.
-
-It could look like this:
+The service will include all languages needed. The code looks like this:
```ts
import {Injectable, Inject} from '@angular/core';
@@ -68,7 +67,7 @@ export class HighlightService {
}
```
-After this, you need the service to be injected in your `BlogComponent` that was generated by scully:
+Now, it needs to inject the service in the `BlogComponent` that was generated by scully:
```ts
import {/* ... */, AfterViewChecked} from '@angular/core';
@@ -86,7 +85,7 @@ export class BlogComponent implements OnInit, AfterViewChecked {
}
```
-The last step is to include a theme from prism:
+Finally, include a Prism's theme like this:
```css
/* include CSS for prism toolbar */
@@ -95,17 +94,4 @@ The last step is to include a theme from prism:
@import '~prismjs/themes/prism-tomorrow';
```
-That's it, all code languages you have been imported in your `HighlightService` should be highlighted now.
-Check out also the official [docs of prismjs](https://prismjs.com/)
-
----
-
-### Do you want to colaborate with scully?
-
-We would really love to know how you are combining Scully with other tools.
-If you want to share your experience with the community please check our [CONTRIBUTING](../CONTRIBUTING.md) file,
-and don't forget to sign the [CLA](https://cla-assistant.io/scullyio/scully).
-
----
-
-[Full Documentation ➡️](scully.md)
+Check out also the official [docs of prismjs](https://prismjs.com/) for more information.
diff --git a/projects/scullyDocs/src/styles.css.rej b/projects/scullyDocs/src/styles.css.rej
new file mode 100644
index 000000000..3a7bff285
--- /dev/null
+++ b/projects/scullyDocs/src/styles.css.rej
@@ -0,0 +1,9 @@
+diff a/projects/scullyDocs/src/styles.css b/projects/scullyDocs/src/styles.css (rejected hunks)
+@@ -252,6 +252,7 @@
+
+ app-card > div > .icon-container {
+ width: 100%;
++ display: flex;
+ justify-content: center;
+ align-items: center;
+ height: 116px;