Skip to content

Commit

Permalink
bump to greenwood v0.30.0-alpha.3
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Jun 22, 2024
1 parent caaf0d7 commit 367fa32
Show file tree
Hide file tree
Showing 20 changed files with 264 additions and 45 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ To add this plugin to an _existing_ Greenwood project (where `@greenwood/cli` ha
1. Create a markdown file in your _src/pages_ directory called _index.md_ with these contents
```md
---
template: index
layout: index
---
```

Expand Down Expand Up @@ -105,14 +105,14 @@ When you are running the app, the following controls and behaviors are available
- Navigate left and right using the left and right arrow keys
- To exit presenter mode, hit the ESC key

### Slide Templates and Layouts
### Slide Layouts

To organize your slide content, this plugin provides the following template that can be specified in markdown file's frontmatter.
To organize your slide content, this plugin provides the following layouts that can be specified in a markdown file's frontmatter.

ex.
```md
---
template: theme-statement
layout: theme-statement
---

Lorum Ipsum all my content....
Expand All @@ -131,7 +131,7 @@ The supported structure for the above slides looks like this
#### Center Content
```md
---
template: theme-center-content
layout: theme-center-content
---

# What's the Deal...?
Expand All @@ -144,7 +144,7 @@ Lorum Ipsum
#### Outline
```md
---
template: theme-outline
layout: theme-outline
---

# My Talk Agenda
Expand All @@ -161,7 +161,7 @@ template: theme-outline
#### Statement
```md
---
template: theme-statement
layout: theme-statement
---

Spicy jalapeno bacon ipsum dolor.
Expand All @@ -172,7 +172,7 @@ Spicy jalapeno bacon ipsum dolor.
#### Title
```md
---
template: theme-title
layout: theme-title
---

# My Talk
Expand All @@ -186,7 +186,7 @@ template: theme-title
#### Top Title Image Left
```md
---
template: theme-top-title-image-left
layout: theme-top-title-image-left
---

# Thank You!
Expand All @@ -202,7 +202,7 @@ template: theme-top-title-image-left
#### Top Title
```md
---
template: theme-top-title
layout: theme-top-title
---

# Welcome To My Talk
Expand Down
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ const greenwoodThemeStarterPresentation = (options = {}) => [{
type: 'context',
name: `${packageJson.name}:context`,
provider: (compilation) => {
const templateLocation = options.__isDevelopment // eslint-disable-line no-underscore-dangle
? new URL('./layouts/', compilation.context.userWorkspace)
: new URL('./dist/layouts/', import.meta.url);
const layoutsLocation = options.__isDevelopment // eslint-disable-line no-underscore-dangle
? new URL('./templates/', compilation.context.userWorkspace)
: new URL('./dist/templates/', import.meta.url);

return {
templates: [
templateLocation
layouts: [
layoutsLocation
]
};
}
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
"start": "npm run develop"
},
"peerDependencies": {
"@greenwood/cli": "~0.30.0-alpha.2"
"@greenwood/cli": "~0.30.0-alpha.3"
},
"dependencies": {
"@greenwood/plugin-import-raw": "~0.30.0-alpha.2"
"@greenwood/plugin-import-raw": "~0.30.0-alpha.3"
},
"devDependencies": {
"@greenwood/cli": "~0.30.0-alpha.2",
"@greenwood/plugin-import-raw": "~0.30.0-alpha.2",
"@greenwood/cli": "~0.30.0-alpha.3",
"@greenwood/plugin-import-raw": "~0.30.0-alpha.3",
"eslint": "^8.4.0",
"rimraf": "^3.0.2",
"stylelint": "^13.12.0",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
template: index
layout: index
---
2 changes: 1 addition & 1 deletion src/pages/slides/1.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
template: theme-title
layout: theme-title
---

# My Talk
Expand Down
2 changes: 1 addition & 1 deletion src/pages/slides/2.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
template: theme-outline
layout: theme-outline
---

# Welcome To My Talk
Expand Down
2 changes: 1 addition & 1 deletion src/pages/slides/3.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
template: theme-center-content
layout: theme-center-content
---

# What's the Deal...?
Expand Down
2 changes: 1 addition & 1 deletion src/pages/slides/4.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
template: theme-top-title
layout: theme-top-title
---

# About
Expand Down
2 changes: 1 addition & 1 deletion src/pages/slides/5.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
template: theme-center-content
layout: theme-center-content
---

# With All These...?
Expand Down
2 changes: 1 addition & 1 deletion src/pages/slides/6.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
template: theme-statement
layout: theme-statement
---

Spicy jalapeno bacon ipsum dolor amet biltong capicola chislic doner buffalo beef hamburger.
2 changes: 1 addition & 1 deletion src/pages/slides/7.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
template: theme-top-title-image-left
layout: theme-top-title-image-left
---

# Thank You!
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 367fa32

Please sign in to comment.