Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature requests: Classes and titles #31

Open
john-theo opened this issue Sep 9, 2019 · 6 comments
Open

New feature requests: Classes and titles #31

john-theo opened this issue Sep 9, 2019 · 6 comments
Assignees
Labels
feature New feature or request

Comments

@john-theo
Copy link
Collaborator

Add className

className of each slide should be among

{"cover", "header-2", "header-3", "back-cover", "text"}

Add outline

slidesStore.outline = {
  00: "header-1 (cover)",
  10: "header-2 (chapter 1)",
  11: "header-2.header-3 (chapter 1.1)",
  ...: ...
  20: "header-2 (chapter 2)",
  21: "header-2.header-3 (chapter 2.1)",
  22: "header-2.header-3 (chapter 2.2)",
  ...: ...
}

Notice: every section after the back-cover should be omitted in the outline.

How to determine back-cover

As the header-1 being title of the cover, header-2 with the same text should be the mark of the slide back-cover.
In other words, back-cover is a header-2 section, whose title is the same as the header-1's.

@john-theo john-theo added the feature New feature or request label Sep 9, 2019
@awmleer awmleer added this to the v1.0 milestone Sep 9, 2019
@awmleer
Copy link
Member

awmleer commented Sep 9, 2019

slidesStore.outline = [{
  title: 'This is the big header', // h1
  children: [{
    title: 'aaa', // h2
    children: [{
      title: 'x', // h3
      children: [],
    }, {
      title: 'y', // h3
      children: [],
    }],
  }, {
    title: 'bbb',
    children: [],
  }]
}, {
  title: 'Another big header',
  children: [],
}]

@awmleer
Copy link
Member

awmleer commented Sep 9, 2019

["cover", "section", "back-cover", "text"]

@john-theo
Copy link
Collaborator Author

john-theo commented Sep 9, 2019

slidesStore.outline = [{
  title: 'This is the big header', // h1
  children: [{
    title: 'aaa', // h2
    children: [{
      title: 'x', // h3
      children: [],
    }, {
      title: 'y', // h3
      children: [],
    }],
  }, {
    title: 'bbb',
    children: [],
  }]
}, {
  title: 'Another big header',
  children: [],
}]

This should be alright. @awmleer

@john-theo
Copy link
Collaborator Author

["cover", "section", "back-cover", "text"]

Make sense. @awmleer

@awmleer
Copy link
Member

awmleer commented Sep 9, 2019

["cover", "section", "page"]

@awmleer
Copy link
Member

awmleer commented Sep 11, 2019

back-cover postponed.

@awmleer awmleer removed this from the v1.0 milestone Sep 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants