Neoteroi / mkdocs-plugins

Plugins for MkDocs.
MIT License
128 stars 9 forks source link

Could not render a timeline block. Please correct the input. #68

Open ZhangzrJerry opened 1 month ago

ZhangzrJerry commented 1 month ago

I installed the plugin via pip and copied the .css file to the file system, and

extra_css:
  - stylesheets/index.css
  - stylesheets/blog.css
  - stylesheets/resume.css
  - stylesheets/academics.css
  - stylesheets/neoteroi.css

markdown_extensions:
  - attr_list
  - md_in_html
  - neoteroi.projects
  - neoteroi.timeline
::timeline::

- content: First implementation.
  icon: ':material-rocket-launch-outline:'
  sub_title: 2022-Q1
  title: Launch

::/timeline::
[timeline(./docs/gantt/timeline.yaml)]

but it throws image

benmozes commented 1 week ago

Hi mate, did you manage to solve the problem?

ZhangzrJerry commented 1 week ago

Hi mate, did you manage to solve the problem?

Haven't yet. I have no idea how to solve it. I suppose it may because of the unmatch between mkdocs version and neoteroi version? Because all the codes are same to the tutorial.

benmozes commented 1 week ago

my be stupid action, but it works get old css from 1.0.4

extra_css:
  - css/<new_fliename>.css
  ...

and remove ::timeline:: from yml file

- content: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  icon: ':fontawesome-solid-gem:'
  sub_title: 2022-Q2
  title: New features
- content: Lorem ipsum dolor sit amet.
  icon: ':material-gauge-empty:'
  sub_title: 2022-Q3
  title: More features!
- content: Lorem ipsum dolor sit amet.
  icon: ':material-bug:'
  sub_title: 2022-Q4
  title: Bugs!
image
ZhangzrJerry commented 1 week ago

my be stupid action, but it works get old css from 1.0.4

extra_css:
  - css/<new_fliename>.css
  ...

and remove ::timeline:: from yml file

- content: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  icon: ':fontawesome-solid-gem:'
  sub_title: 2022-Q2
  title: New features
- content: Lorem ipsum dolor sit amet.
  icon: ':material-gauge-empty:'
  sub_title: 2022-Q3
  title: More features!
- content: Lorem ipsum dolor sit amet.
  icon: ':material-bug:'
  sub_title: 2022-Q4
  title: Bugs!
image

Well, it works, thanks!

ZhangzrJerry commented 1 week ago

How can I help to improve the tutorial