Giter Club home page Giter Club logo

ic123's People

Contributors

blingchua avatar cylim avatar drgu0416 avatar flyq avatar homerjq avatar ihsotaston avatar junweif2 avatar leihe501 avatar million-miles avatar ninegua avatar vobc avatar zhangwei983 avatar zire avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ic123's Issues

在blog里显示多个栏目

@zhangwei983 提出了一个建议,把blog里分成几个栏目(譬如,ICP Monday, 社区动态,IC from Michael Yang,白泽研究院,等等),这样可以让不同主题,不同作者,不同系列的文章都可以出现在blog的左边菜单下,从另外一个维度来区分IC社区的文章。目前Docusaurus的架构下,只能显示一个blog,除了tag以外,没有其他的方式来区分文章。

我尝试了一下,大概有四种路线,但效果都不理想。

  1. 在目前的blog下设立多个子目录。Docusaurus目前只能做到在IDE里的blog下设立多个子文件夹(https://jvdevlab.com/blog/docusaurus/blog-subfolders) ,但是最后在网页上显示仍然是同一个系列,不能按照文件夹的名字来区分不同的文章。文件夹的存在,仅仅只是方便开发者在本地处理文件而已,不能起到对markdown文件分类的效果。

  2. 设立multiple blog,这是docusaurus可以支持的。https://docusaurus.io/docs/blog#multiple-blogs 。 但是,从测试网站效果来看,会在top menu增加一个选项。目前 ic123 的顶级目录已经有八项了,难以再容纳更多的同等重量级的选项。

  3. 把顶级菜单的 新闻 指向到tags,这样方便读者选择不同的栏目 - 假设每个栏目都是一个单独的tag。但栏目毕竟不同于tag,效果还是打了很大的折扣。以后tag的数量会大大超过栏目的数量,划分起来并不容易。

  4. 在docs下建立子目录,用docs的方式来处理专栏文章,譬如 https://herbertyang.xyz/ 的处理方式。但blog文章跟其他docs的文章性质不同,用这种方式处理需要手工操作的地方,需要人为维护的rules太多,会降低更新和维护的效率。

所以,暂时就先保持现状 - 除非有人可以提出更好的解决办法。

无法在iFrame里展示canister里的内容

看起来,目前ICP还无法支持在iframe里展示canister内部的文件,譬如一个PDF。

官方论坛的帖子有讨论过:

这个缺陷直接影响就是Chinese Deck 网页无法在 iframe 或者 object tag里展示pdf 文件。

所以,短期内,只能先把文件放在 static/asset 文件夹里,然后通过 <anchor> tag 来提供一个下载链接。

长远的解决办法,是用markdown直接编辑presentation slides, 用 Marp, MDX,或者Reveal.js。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.