Browse Source

Enable syntax highlighting in Mkdocs

master
Skylar Ittner 1 year ago
parent
commit
fe61865a02
2 changed files with 8 additions and 6 deletions
  1. 6
    6
      docs/Theme Development.md
  2. 2
    0
      mkdocs.yml

+ 6
- 6
docs/Theme Development.md View File

@@ -151,7 +151,7 @@ Below is a minimal functional `default` template that fulfills the above require

#### Plain Text

```html
```php
<p class="sw-text" data-component="lead">
<?php get_component("lead"); ?>
</p>
@@ -159,7 +159,7 @@ Below is a minimal functional `default` template that fulfills the above require

#### HTML

```html
```php
<div class="sw-editable" data-component="component-name">
<?php get_component("component-name"); ?>
</div>
@@ -167,7 +167,7 @@ Below is a minimal functional `default` template that fulfills the above require

#### Complex

```html
```php
<?php
if (!is_complex_empty("complex-component-name")) {
$comp = get_complex_component("complex-component-name", null, ['icon', 'image', 'link', 'text']);
@@ -191,7 +191,7 @@ if (!is_complex_empty("complex-component-name")) {

#### List of social media links

```html
```php
<?php
$social = get_socialmedia_urls();
foreach ($social as $s) {
@@ -208,7 +208,7 @@ foreach ($social as $s) {
```

#### Contact Information
```html
```php
<?php
format_special(
get_setting("address"),
@@ -229,7 +229,7 @@ format_special(
```

#### Footer Links
```html
```php
<ul>
<?php
$links = get_footer_urls();

+ 2
- 0
mkdocs.yml View File

@@ -14,3 +14,5 @@ site_author: Netsyms Technologies
repo_name: 'Business/SiteWriter'
repo_url: 'https://source.netsyms.com/Business/SiteWriter'
copyright: Copyright &copy; 2018 Netsyms Technologies. All rights reserved. Copying is allowed for instructional purposes (such as creating an internal user help document) as long as credit is given and this copyright notice is included. For other purposes, or if you are selling a product containing copied material, please <a href="https://netsyms.com/contact" target="_BLANK">contact us</a> for permission.
markdown_extensions:
- codehilite

Loading…
Cancel
Save