@@ -6,7 +6,7 @@ This repository hosts reveal.js-based presentations for the Codebase Interface o
66
77```
881. Create presentation: task new -- my-presentation
9- 2. Edit slides: presentations/my-presentation/index.html
9+ 2. Edit slides: presentations/my-presentation/slides.md
10103. Test locally: task serve
11114. Add to index: index.html (update presentations array)
12125. Commit & push: Git workflow
@@ -62,8 +62,8 @@ task new -- my-presentation-name
6262
6363This will:
6464- Create a new directory under ` presentations/my-presentation-name/ `
65- - Copy the presentation template
66- - Set up the basic structure with sample slides
65+ - Copy the presentation template (HTML and Markdown files)
66+ - Set up the basic structure with sample slides in Markdown
6767- Show you the next steps
6868
6969** Example:**
@@ -85,47 +85,96 @@ If you prefer to create a presentation manually:
8585 cp -r templates/presentation/* presentations/my-presentation/
8686 ```
8787
88- 3 . Edit the ` presentations/my-presentation/index.html ` file to add your content.
88+ 3 . Edit the ` presentations/my-presentation/slides.md ` file to add your content in Markdown .
8989
9090## Editing Your Presentation
9191
92- 1 . Open ` presentations/your-presentation-name/index.html ` in your favorite editor.
92+ Presentations use Markdown format, making them easy to write and maintain!
9393
94- 2 . Each ` <section> ` tag represents a slide:
95- ``` html
96- <section >
97- <h2 >My Slide Title</h2 >
98- <p >Slide content goes here</p >
99- </section >
94+ 1 . Open ` presentations/your-presentation-name/slides.md ` in your favorite editor.
95+
96+ 2 . Use ` --- ` to separate horizontal slides:
97+ ``` markdown
98+ # First Slide
99+
100+ Content for first slide
101+
102+ ---
103+
104+ # Second Slide
105+
106+ Content for second slide
100107 ```
101108
102- 3 . For vertical slides (sub-slides), nest sections:
103- ``` html
104- <section >
105- <section >
106- <h2 >Main Topic</h2 >
107- </section >
108- <section >
109- <h2 >Sub-topic 1</h2 >
110- </section >
111- <section >
112- <h2 >Sub-topic 2</h2 >
113- </section >
114- </section >
109+ 3 . Use ` -- ` for vertical slides (sub-slides):
110+ ``` markdown
111+ # Main Topic
112+
113+ ---
114+
115+ ## Subtopic 1
116+
117+ --
118+
119+ ## Subtopic 2
120+
121+ --
122+
123+ ## Subtopic 3
124+ ```
125+
126+ 4 . Format text with Markdown:
127+ ``` markdown
128+ # Heading 1
129+ ## Heading 2
130+
131+ **Bold text**
132+ *Italic text*
133+ `Inline code`
134+
135+ - Bullet point 1
136+ - Bullet point 2
137+
138+ 1. Numbered item 1
139+ 2. Numbered item 2
140+
141+ [Link text](https://example.com)
115142 ```
116143
117- 4 . Add code blocks with syntax highlighting:
118- ``` html
119- <section >
120- <h2 >Code Example</h2 >
121- <pre ><code data-trim data-noescape >
144+ 5 . Add code blocks with syntax highlighting:
145+ ``` markdown
146+ ```javascript
122147 function example() {
123148 return "Hello World";
124149 }
125- </code ></pre >
126- </section >
150+ ` ``
151+ ```
152+
153+ 6 . Add fragment animations (step-by-step reveals):
154+ ``` markdown
155+ - First item <!-- .element: class="fragment" -->
156+ - Second item <!-- .element: class="fragment" -->
157+ - Third item <!-- .element: class="fragment" -->
127158 ```
128159
160+ 7 . Add speaker notes:
161+ ``` markdown
162+ This is slide content
163+
164+ Note:
165+ These are speaker notes that only appear in presenter view
166+ ```
167+
168+ ### Advanced HTML in Markdown
169+
170+ You can also use HTML within your Markdown for more control:
171+
172+ ``` markdown
173+ <div style="color: red;">
174+ Custom styled content
175+ </div>
176+ ```
177+
129178## Testing Locally
130179
131180Start the local development server:
@@ -188,37 +237,36 @@ After creating a presentation, add it to the main index page so it appears on th
188237## Reveal.js Features
189238
190239This setup includes the following reveal.js plugins:
191- - ** Markdown** - Write slides in Markdown
240+ - ** Markdown** - Write slides in Markdown (primary method)
192241- ** Highlight** - Syntax highlighting for code
193242- ** Notes** - Speaker notes (press ` S ` during presentation)
194243
195- ### Advanced Features
196-
197- ** Fragments (step-by-step reveals):**
198- ``` html
199- <section >
200- <p class =" fragment" >First point</p >
201- <p class =" fragment" >Second point</p >
202- <p class =" fragment" >Third point</p >
203- </section >
204- ```
244+ ### Advanced Features in Markdown
205245
206246** Backgrounds:**
207- ``` html
208- <section data-background-color =" #ff0000" >
209- <h2 >Red background</h2 >
210- </section >
211247
212- <section data-background-image =" image.jpg" >
213- <h2 >Image background</h2 >
214- </section >
248+ Add backgrounds using HTML comments:
249+ ``` markdown
250+ <!-- .slide: data-background-color="#ff0000" -->
251+ # Red Background Slide
252+
253+ ---
254+
255+ <!-- .slide: data-background-image="image.jpg" -->
256+ # Image Background Slide
215257```
216258
217259** Transitions:**
218- ``` html
219- <section data-transition =" zoom" >
220- <h2 >This slide zooms in</h2 >
221- </section >
260+ ``` markdown
261+ <!-- .slide: data-transition="zoom" -->
262+ # This Slide Zooms In
263+ ```
264+
265+ ** Custom Classes and Styles:**
266+ ``` markdown
267+ This text is red <!-- .element: style="color: red;" -->
268+
269+ Centered content <!-- .element: class="r-fit-text" -->
222270```
223271
224272For more features, see the [ reveal.js documentation] ( https://revealjs.com/ ) .
@@ -259,15 +307,17 @@ https://codebaseinterface.org/presentations/your-presentation-name/
2593072 . ** Use visuals** - Images, diagrams, and code examples are powerful
2603083 . ** Test locally** - Always preview your presentation before committing
2613094 . ** Consistent naming** - Use lowercase and hyphens for presentation names (e.g., ` my-presentation ` )
262- 5 . ** Organize slides** - Use sections for main topics and nested sections for details
263- 6 . ** Add speaker notes** - Use ` <aside class="notes"> ` for presenter guidance
310+ 5 . ** Organize slides** - Use horizontal slides (` --- ` ) for main topics and vertical slides (` -- ` ) for details
311+ 6 . ** Add speaker notes** - Use ` Note: ` prefix in Markdown for presenter guidance
312+ 7 . ** Write in Markdown** - It's easier to maintain and version control than HTML
264313
265314## Troubleshooting
266315
267316### Presentation not showing?
268317- Ensure you've run ` task install ` to install dependencies
269- - Check that your presentation directory has an ` index.html ` file
318+ - Check that your presentation directory has both ` index.html ` and ` slides.md ` files
270319- Verify the reveal.js paths in your HTML are correct (` ../../node_modules/reveal.js/... ` )
320+ - Make sure the markdown file path in index.html matches your filename
271321
272322### Styles not loading?
273323- Make sure ` node_modules ` exists (run ` task install ` )
0 commit comments