MIT License

项目介绍

George-debug/obsidian-timeline 是一个托管在 GitHub 上的开源项目,主要使用 Sass 编写,采用 MIT License 许可证,目前获得 412 个 Star、26 次 Fork。

仓库全名
George-debug/obsidian-timeline
开源许可证
MIT License
Star 数
412
Fork 数
26
未关闭 Issue
29

README 摘要

Build Amazing Timelines We recommend you use the snippet instead for footnotes and node links and use it with other plugins. How to use it Choose the timeline or timeline-labeled tag timeline tag Requires + at the beginning of each line: each event has 3 +s in total: 1 for time, 1 for title and 1 for content you can separate them with empty lines if it's easier for you to write markdown timeline-labeled tag each…

完整内容见 GitHub 原始 README 或本页 。

常见问题

obsidian-timeline 用什么语言开发?

主要使用 Sass 编写,采用 MIT License 许可证,目前有 412 个 Star。

obsidian-timeline 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 obsidian-timeline 的源码?

可以直接克隆仓库:git clone https://github.com/George-debug/obsidian-timeline.git,默认分支为 master;安装与运行步骤见仓库 README。

obsidian-timeline 最近还在维护吗?

仓库最近一次更新为 2022年7月26日,当前有 29 个未关闭 Issue;Star 数为 412,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Obisdian.md plugin for creating timelines

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
469
价值分
254
活跃状态
活跃
暂无主题

语言占比

CSS
JavaScript
Sass
TypeScript

Release

README

Build Amazing Timelines

We recommend you use the snippet instead for footnotes and node links and use it with other plugins.

Create your own timeline

How to use it

Choose the timeline or timeline-labeled tag

  • timeline tag

    Requires + at the beginning of each line:

    • each event has 3 +s in total: 1 for time, 1 for title and 1 for content
    • you can separate them with empty lines if it’s easier for you to write
    ```timeline
    [line-3, body-2]
    + pre</br> 17th century
    + Origins of coffee
    + The modern version of roasted coffee originated in Arabia. During the 13th century, coffee was extremely popular with the Muslim community for its stimulant powers, which proved useful during long prayer sessions. By parching and boiling the coffee beans, rendering them infertile, the Arabs were able to corner the market on coffee crops. In fact, tradition says that not a single coffee plant existed outside of Arabia or Africa until the 1600s, when Baba Budan, an Indian pilgrim, left Mecca with fertile beans fastened to a strap across his abdomen. Baba’s beans resulted in a new and competitive European coffee trade.
    
    + 17th century
    + Europe and coffee
    + In 1616, the Dutch founded the first European-owned coffee estate in Sri Lanka, then Ceylon, then Java in 1696. The French began growing coffee in the Caribbean, followed by the Spanish in Central America and the Portuguese in Brazil. European coffee houses sprang up in Italy and later France, where they reached a new level of popularity. Now, it is de _rigueur_ for Parisians to indulge in a cup of coffee and a baguette or croissant at the numerous coffee cafes throughout Paris.
    ```
    
  • timeline-labeled tag

    • each event has a corresponding label (date, title and content) that starts the line
    • you can separate them with empty lines if it’s easier for you to write
    ```timeline-labeled
    [line-3, body-2]
    date: pre</br> 17th century
    title: Origins of coffee
    content:
    The modern version of roasted coffee originated in Arabia. During the 13th century, coffee was extremely popular with the Muslim community for its stimulant powers, which proved useful during long prayer sessions. By parching and boiling the coffee beans, rendering them infertile, the Arabs were able to corner the market on coffee crops. In fact, tradition says that not a single coffee plant existed outside of Arabia or Africa until the 1600s, when Baba Budan, an Indian pilgrim, left Mecca with fertile beans fastened to a strap across his abdomen. Baba’s beans resulted in a new and competitive European coffee trade.
    
    date: 17th century
    title: Europe and coffee
    content:
    In 1616, the Dutch founded the first European-owned coffee estate in Sri Lanka, then Ceylon, then Java in 1696. The French began growing coffee in the Caribbean, followed by the Spanish in Central America and the Portuguese in Brazil. European coffee houses sprang up in Italy and later France, where they reached a new level of popularity. Now, it is de _rigueur_ for Parisians to indulge in a cup of coffee and a baguette or croissant at the numerous coffee cafes throughout Paris.
    ```
    

[] is optional!

You can use [] at the beginning of the code-block to add pre-written classes or your own classes to the wrapper.

Customize

Using pre-written classes for line, body and the active color:

  • line:

    • line-2
    • line-3
    • line-4
    • line-5
  • body:

    • body-2
    • body-3
    • body-4
  • active color:

    • active-color-background-modifier-success
    • active-color-background-modifier-error
    • active-color-background-modifier-error-hover
    • active-color-text-accent
    • active-color-text-accent-hover
    • active-color-text-error
    • active-color-text-error-hover
    • active-color-text-selection
    • active-color-interactive-accent
    • active-color-interactive-accent-hover
    • active-color-interactive-success

Timiline with colors

For active color we use obsidian’s css variables as active colors, so it matches the theme. The default active color is background-modifier-success. If you want your own color use --timeline-active-color css variable attached to .timeline class

.timeline
    --timeline-active-color: #00c137

Special Thanks

Support

评论

暂无评论