Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 4dedd06

Browse files
committed
fix: rename sectionTitle to section-title
1 parent ea584b8 commit 4dedd06

File tree

21 files changed

+37
-23
lines changed

21 files changed

+37
-23
lines changed

packages/client/assets/style/code.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pre {
88
background: var(--color-white);
99
border-radius: 10px;
1010
min-width: 50%;
11-
max-width: 90%;
11+
max-width: 70%;
1212
width: auto;
1313
}
1414

packages/client/assets/style/common.css

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ p {
6464

6565
ul {
6666
margin: 0 auto;
67+
width: fit-content;
6768
}
6869

6970
li {

packages/client/assets/style/customize.css

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
.swiper-container {
2222
background: #f5f5f5;
2323
height: 100vh;
24+
width: 100%;
2425
}
2526

2627
.swiper-slide {

packages/client/src/components/Assistant.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const Assistant = () => (
104104
<A url="https://webslides.tv/demos/components#slide=2">Others</A>
105105
<hr style={hrCss} />
106106
<SmallTitle>Fusuma</SmallTitle>
107-
<code>{`<!-- sectionTitle -->`}</code>:
107+
<code>{`<!-- section-title -->`}</code>:
108108
<A url="https://hiroppy.github.io/fusuma/intro/#slide=16">
109109
<code>.section-title</code>
110110
</A>
@@ -148,11 +148,11 @@ export const Assistant = () => (
148148
},
149149
{
150150
title: 'Adding Title to Sidebar',
151-
content: <code>{`sectionTitle: title`}</code>,
151+
content: <code>{`section-title: title`}</code>,
152152
url: 'https://hiroppy.github.io/fusuma/intro/#slide=16',
153153
},
154154
{
155-
title: 'Adding Agenda UI via SectionTitle',
155+
title: 'Adding Agenda UI via section-title',
156156
content: <code>contents</code>,
157157
url: 'https://hiroppy.github.io/fusuma/intro/#slide=17',
158158
},

packages/client/src/components/SlideCore.js

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ if (process.env.UI.PAGINATION) {
2727
}
2828

2929
if (process.env.UI.EFFECT === 'fade') {
30+
console.log('zzzz');
3031
swiperComponents.push(EffectFade);
3132
import('swiper/components/effect-fade/effect-fade.min.css');
3233
} else if (process.env.UI.EFFECT === 'cube') {

packages/fusuma/src/configs/fusumarc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async function init(baseDir) {
6161

6262
// scaffold
6363
await mkdirAsync(join(baseDir, 'slides'));
64-
info('init', 'Created slides directory');
64+
info('init', 'Created /slides');
6565

6666
{
6767
const data = await readFileAsync(join(__dirname, 'templates', '0-title.md'), 'utf8');
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
<!-- classes: title -->
22

33
# Hello😃
4+
5+
---
6+
7+
<!-- section-title: Bye👋 -->
8+
9+
## Bye👋

packages/fusuma/src/configs/templates/fusumarc.yml

+5
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,10 @@ slide:
1111
pagination: # bullets | progressbar | fraction
1212
effect: # fade | cube | flip
1313
code:
14+
languages:
15+
- javascript
16+
- html
17+
- css
18+
- markdown
1419
plugins: []
1520
theme: default

packages/mdx-loader/__tests__/__snapshots__/index.js.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const slides = [props => <>
7171
export const fusumaProps = [{
7272
note: 'This is Note!',
7373
classes: 'class!',
74-
sectionTitle: 'sectionTitle!',
74+
sectionTitle: 'section-title!',
7575
screen: 'true'
7676
}];
7777

@@ -93,7 +93,7 @@ export default function MDXContent({
9393
/* classes: class! */
9494
}
9595
{
96-
/* sectionTitle: sectionTitle! */
96+
/* section-title: section-title! */
9797
}
9898
<h1>{\`Hello\`}</h1>
9999
{

packages/mdx-loader/__tests__/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const Sample = () => <div>sample</div>;
5353
This is Note!
5454
-->
5555
<!-- classes: class! -->
56-
<!-- sectionTitle: sectionTitle! -->
56+
<!-- section-title: section-title! -->
5757
# Hello
5858
<!-- content -->
5959
<!-- screen -->

packages/mdx-loader/src/mdxPlugin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function mdxPlugin() {
3535
const prefix = p.split('\n')[0];
3636
const attr = rest.map((r) => r.trim());
3737

38-
if (prefix === 'sectionTitle') {
38+
if (prefix === 'section-title') {
3939
props.sectionTitle = attr.join('');
4040
return;
4141
}

samples/advanced/slides/01-chart.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- sectionTitle: Charts -->
1+
<!-- section-title: Charts -->
22

33
## Charts
44

samples/advanced/slides/02-math.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- sectionTitle: Math -->
1+
<!-- section-title: Math -->
22

33
## Math
44

samples/debug/slides/01-many-pages.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- sectionTitle: many pages -->
1+
<!-- section-title: many pages -->
22

33
<a href="https://github.com/hiroppy/fusuma/issues/110" rel="noopener" aria-label="issue110">
44
https://github.com/hiroppy/fusuma/issues/110

samples/debug/style.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@import '../../packages/client/assets/style/themes/default.css';
2-
/* @import '../../packages/client/assets/style/themes/webpack.css'; */
1+
/* @import '../../packages/client/assets/style/themes/default.css'; */
2+
@import '../../packages/client/assets/style/themes/webpack.css';
33
/* @import '../../packages/client/assets/style/themes/babel.css'; */
44
/* @import '../../packages/client/assets/style/themes/node.css'; */
55

samples/intro/slides/02-fusuma.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- sectionTitle: What is fusuma? -->
1+
<!-- section-title: What is fusuma? -->
22

33
## What is Fusuma?
44

samples/intro/slides/04-slide.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- sectionTitle: Syntax Provided by Fusuma -->
1+
<!-- section-title: Syntax Provided by Fusuma -->
22

33
## Syntaxes Provided by Fusuma
44

@@ -101,7 +101,7 @@ The class name of `<!-- block-start -->` isn't mandatory.
101101
## Declare Section Title
102102

103103
```md
104-
<!-- sectionTitle: this is the second slide! -->
104+
<!-- section-title: this is the second slide! -->
105105

106106
## ✌️
107107
```
@@ -131,7 +131,7 @@ In addition, it is also added to sidebar's list.
131131

132132
<br />
133133

134-
Converts the page number and title name specified by `sectionTitle` into a list component.
134+
Converts the page number and title name specified by `section-title` into a list component.
135135

136136
---
137137

samples/intro/slides/05-mdx.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- sectionTitle: mdx -->
1+
<!-- section-title: mdx -->
22

33
## mdx
44

samples/intro/slides/06-themes.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- sectionTitle: Themes -->
1+
<!-- section-title: Themes -->
22

33
## Themes
44

samples/intro/slides/07-presenter-mode.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- sectionTitle: Presenter Mode -->
1+
<!-- section-title: Presenter Mode -->
22

33
## Presenter Mode
44

site/docs/guides/slide-syntax.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Makes explicit declarations to create a table of contents. and it is also added
3131

3232
```md
3333
<!-- slide.md -->
34-
<!-- sectionTitle: This is the first slide! -->
34+
<!-- section-title: This is the first slide! -->
3535

3636
## Hello
3737
```
@@ -49,7 +49,7 @@ Makes explicit declarations to create a table of contents. and it is also added
4949

5050
## Generating Table of Contents
5151

52-
Insert titles written as `sectionTitle` to ToC component automatically.
52+
Insert titles written as `section-title` to ToC component automatically.
5353

5454
```md
5555
<!-- toc.md -->

0 commit comments

Comments
 (0)