Git Product home page Git Product logo

Comments (7)

wangliang1989 avatar wangliang1989 commented on August 19, 2024

方案2如何实现?

from gmt_docs.

seisman avatar seisman commented on August 19, 2024

两种可能的实现方式,一种是根据示例在文件中的特征,通过类似正则表达式来判断哪些语句属于示例,然后直接执行即可。另一种可能的实现方式是直接调用比较成熟的rst语言解析工具,然别的工具来解析rst文件,然后自己再写代码处理其中的code语句。

from gmt_docs.

wangliang1989 avatar wangliang1989 commented on August 19, 2024

显然1简洁

from gmt_docs.

seisman avatar seisman commented on August 19, 2024

1相当于自己完成一个简易版的rst语言解析工具,并不一定比2简单。

from gmt_docs.

wangliang1989 avatar wangliang1989 commented on August 19, 2024

既然已经写了脚本了,去执行脚本就是,分析rst干啥

from gmt_docs.

seisman avatar seisman commented on August 19, 2024

GMT_Docs中的大部分示例都是直接写在文档中的,并没有写到脚本中。

from gmt_docs.

seisman avatar seisman commented on August 19, 2024

Closed by #94

from gmt_docs.

Related Issues (20)

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.