Skip to content

Commit

Permalink
color_scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
pdallmer committed Aug 22, 2024
1 parent 1101fad commit 1ee583f
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ _site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata
dist
node_modules

# Ignore folders generated by Bundler
.bundle/
Expand Down
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ title: The SSJS Framework
description: Framework that creates a sfmc compatible script from modern Javascript.
theme: just-the-docs

search_enabled: false
search_enabled: true
color_scheme: ssjs

callouts:
warning:
Expand Down
16 changes: 16 additions & 0 deletions _sass/color_schemes/ssjs.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
$blue-000: rgb(0, 110, 199) ;

$color-scheme: light ;
$body-background-color: $white ;
$body-heading-color: #000 ;
$body-text-color: #000 ;
$link-color: rgb(0, 110, 199);
$nav-child-link-color: $grey-dk-100 ;
$sidebar-color: #F3F2F1 ;
$base-button-color: #c8b600 ;
$btn-primary-color: rgb(0, 110, 199) ;
$code-background-color: $grey-lt-000 ;
$feedback-color: darken($sidebar-color, 3%) ;
$table-background-color: $white ;
$search-background-color: $white ;
$search-result-preview-color: $grey-dk-000 ;
2 changes: 1 addition & 1 deletion documentation/dynamicPolyfills.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ parent: Documentation
{: .note }
This is an experimental feature. To use it, install the alpha version by running `npm install --global generator-ssjs@alpha`.

Dynamic Polyfills enable you to use modern JS functions without importing the polyfills. Instead the polyfills will be added from the plugin if the functions are detected. the dynamic polyfills also don't break the core lobrary, as they will transform the functions to prevent updating the prototype.
Dynamic Polyfills enable you to use modern JS functions without importing the polyfills. Instead the polyfills will be added from the plugin if the functions are detected. the dynamic polyfills also don't break the core library, as they will transform the functions to prevent updating the prototype.

**example:**
input:
Expand Down
5 changes: 3 additions & 2 deletions documentation/html.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ parent: Documentation
---

### HTML Loader
external html files can be imported and displayed.
> **_NOTE:_** do not overwrite the `/templates/index.ejs`. It is required to build the SFMC compatible script.
External HTML files can be imported and displayed. This can be useful if you are building a landing page and want to execute some SSJS code before loading the page, or if you want to display different pages based on the outcome of the SSJS code. There is no native templating language available. To use personalization strings, you need to set AMPscript variables and reference them in the HTML.


Example:
create a new file `/templates/index.html`:
```
Expand Down

0 comments on commit 1ee583f

Please sign in to comment.