Code Monkey home page Code Monkey logo

docs.taichi.graphics's People

Contributors

amesingflank avatar biogeek avatar chuandongyan avatar dependabot[bot] avatar erizmr avatar fantasyvr avatar feisuzhu avatar isdanni avatar justinterest avatar k-ye avatar lin-hitonami avatar lucywsq avatar michaelmai2000 avatar neozhaoliang avatar olinaaaloompa avatar painty avatar rexwangcc avatar richardo2016 avatar taichi-gardener avatar waitinautumn12 avatar writinwaters avatar yuanming-hu avatar ziruier avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs.taichi.graphics's Issues

Migrate the zh-cn existing docs

Once #21 is done, we need to migrate the existing translated docs in Zh-cn. This can be done in multiple PRs iteratively, which is easier to be reviewed.

Acceptance Criteria:

  • The existing docs are migrated
  • Cross-check with the up-to-date en documentation, any outdated translation shall be removed or left blank.
  • The credits of the docers who have contributed shall be honored properly in this repo too.
  • Update the current taichi.graphics website:
    • Move the stack to the react based docusaurus or Gatsby or other MDX based frameworks, to better align with the existing components and libraries (some of which are internal).
    • Separate the docs and API into two different categories, both are linked from a higher level website (which will become the future taichi.graphics).
    • Clean up the main repo's doc related PRs. (We'd better create a mirror issue in the main repo before starting this task)
    • Add instructions for contributors about how to contribute under the new structure, in both docs and the main repo. (We'd better create a mirror issue in the main repo before starting this task)

The targeted docs infrastruture is illustrated by the following diagram:

No page flip button on the blog page

There is no page flip button on the blog page: https://docs.taichi-lang.org/blog.

The current page cannot accommodate all blogs, which are arranged chronologically. The earliest piece should be "Head First Taichi", published in October 2021, but it does not appear on the page. Readers can only access it by clicking on the corresponding tags. Otherwise, they just scroll down to the bottom and would assume that there is no other resource available.

Can we put all blogs on the same page or add a page flip button to indicate that we have more to provide?

Search issues

1: All APIs after 'abstract' ought to be filtered.
image

2: Blog search results ought to come after doc and API. So, in an instant search window, doc results always come first, API search results come second, and blog results come last.

3: The preview of the search result page is spoiled (codes of different lines are put together)
image

Ask Crowdin for help to fix a bug around admonition blocks

Crowdin incorrectly changes all types of formattings around admonitions, which will break the vuepress styles, need to think about how to fix it.

Originally posted by @rexwangcc in https://github.com/taichi-dev/taichi.graphics/pull/27#discussion_r527368646

After taking a look at others' discussions who have encountered this bug (see casbin/casbin-website#95), I believe the most efficient way to resolve this is to contact Crowdin support directly.

Crowdin: Different versions of same documents appear concurrently under a file

Project link: https://crowdin.com/project/taichi-programming-language/zh-CN

Theoretically, documents on the Crowdin project page should be identical to those on the doc site. But now you will find different versions of the same documents under a file. For example, under the "get_started" file, index.md should have been deleted and replaced by hello_world.md.
截屏2023-01-31 下午4 10 19

How can we ensure that the Crowdin project is promptly updated along with the doc site changes?
BTW, we are now using Crowdin CLI 3.6.0, while the latest version is 3.10.0. Do we need to update the tool?

Automate the generation of Taichi contributors

Currently contributors are listed here at https://taichi.graphics/community/members.html#active-contributors by manual markdown editing, while it's necessary to maintain Technical Steering Committee, Committers and Reviewers lists maunally, it would be better if we could have a more automated way to display active contributors.

Existing solutions include:

For the initial implementation, we don't have to go fancy as including images and names, simply generating a list of Github user ids might be enough.

Taken to the 'develop' branch after typing https://docs.taichi-lang.org/

  • Laptop: MacBook Pro
  • Web browser: Chrome
  • How to reproduce: After I type docs.taichi-lang.org, the landing page shows the 'develop' branch. I suspect this is due to the cache. And If I use an Incognito window, then this issue would not occur.
  • Expected behavior: The landing page ought to show the latest published release, v1.1.3 in this case, not the develop release.
    image

Integrate into Taichi release workflow

No since we have plan to separate documentation articles (as well as generated API reference) from the main repo, we need to think carefully about how to craft/update the release workflow so it won't produce extra burden to the releaser(s) once we get rid of the rst docs in the main repo.

This is related to taichi-dev/taichi#1674

Export documentation to PDF

It's a huge plus if we can let users export documentation to PDF files so they don't have to be online to check the docs.

Note: This can happen at either build time or in-broswer, depends on which is easier to implement.

reduction of taichi is slower than numpy

import taichi as ti
import numpy as np
import time
ti.init(arch=ti.cuda)#,debug=True)
n=1<<18
a=np.random.randn(n).astype(np.float32)
b=ti.field(ti.f32,n)
b.from_numpy(a)
@ti.kernel
def sum1()->ti.f32:
    result=0.0
    for i in b:
        result+=b[i]
    return result
#compile
sum1()
t1=time.time()
for _ in range(1000):
    a.sum()
t2=time.time()
for _ in range(1000):
    sum1()
ti.sync()
t3=time.time()
print('time numpy:',t2-t1,'time ti atomic_add:',t3-t2)
input('enter to continue')

result in RTX3060 and R7 5800H is:

time numpy: 0.07301616668701172 time ti atomic_add: 0.3090794086456299

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.