Giter Club home page Giter Club logo

Comments (18)

yasushisakai avatar yasushisakai commented on September 24, 2024

I'll move it.
I see it should be here right?
https://github.com/CityScope/cityscope.github.io/tree/new_docsite/docsite/docs/modules/cityio

is there anything I neeed to do other than this, it looks like there is some front-matter format?

---
id:cityio
---

from cityscope.github.io.

RELNO avatar RELNO commented on September 24, 2024

Yes, there's a minor flag to let the framework know how to name the article.
I think that based on https://cityscope.media.mit.edu/docs/general/CityScopeJS%20Ecosystem diagram, cityIO should have its own place as https://github.com/CityScope/cityscope.github.io/tree/new_docsite/docsite/docs/**BACKEND**/cityio, since it's agnostic to modules or frontend.

from cityscope.github.io.

crisjf avatar crisjf commented on September 24, 2024

@yasushisakai the action should also take care if that. Let me know where your md file lives and I'll point the action to that location and you won't have to worry about it anymore.

from cityscope.github.io.

yasushisakai avatar yasushisakai commented on September 24, 2024

ok, so if

  1. I have the md files living inside the cityio repo (accessible via raw.githubusercontent), @crisjf 's actions can automatically populate that to this repo?
    or
  2. I should still put it this/repo/docsite/docs/backend/cityio? and manually put the front-matter

I don't have strong opinions where to put it, just want one place to edit.

from cityscope.github.io.

crisjf avatar crisjf commented on September 24, 2024

The action does 1, and it also adds front-matter. It updated every day at midnight so any edits that you do to your master md file with documentation will be automatically synced here. Where is the file right now?

from cityscope.github.io.

yasushisakai avatar yasushisakai commented on September 24, 2024

currently have it on the wiki, but will move it inside the cityio repo then... I will let you know when I'm done

from cityscope.github.io.

crisjf avatar crisjf commented on September 24, 2024

We can also pull it from the wiki. Can you link it here?

from cityscope.github.io.

RELNO avatar RELNO commented on September 24, 2024

@yasushisakai thanks. As mentioned, it's really up to you. I personally skipped that process to simply put md in the meta-repo, and none in the sub-repos. Do keep in mind that @crisjf script (despite being reallllllly cool ), cannot handle future changes to files and folders locations. Also, mdx capabilities might not work.

from cityscope.github.io.

crisjf avatar crisjf commented on September 24, 2024

I looked at the wiki in the CityScope/CS_CityIO repo. Adding this block to the pull_docs.yml workflow should solve this issue. I'm happy to implement it if you guys are happy with it.

- name: Update CS_CityIO
  run: bash .github/scripts/update.sh wiki/CityScope CS_CityIO docsite/docs/backend Home.md API.md Client-Examples.md

from cityscope.github.io.

yasushisakai avatar yasushisakai commented on September 24, 2024

@crisjf thanks, but I would like to use this opportunity to get rid of the wiki and centralize it for access. Another thing I do think it's saner to have the original docs closer to the actual code. This is not meant to be referenced by for me to maintain.

commit 5a1517 has the .md files inside the https://github.com/CityScope/CS_CityIO repository. its inside the docs/ (here) folder under the project root.

What should I do next?

from cityscope.github.io.

crisjf avatar crisjf commented on September 24, 2024

Even better. Do you want to link all the mds? It looks like Home.md, API.md, and Running-it-locally.md are the important ones. If so, then add the following block to this yml file. I wrote a short wiki on the syntax here.

- name: Update CS_CityIO
  run: bash .github/scripts/update.sh CityScope CS_CityIO docsite/docs/backend docs/Home.md docs/API.md docs/Running-it-locally.md

Once you've done this, every time you edit these three files, they will be automatically updated here. Let me know once you've done it and I'll take a look.

from cityscope.github.io.

crisjf avatar crisjf commented on September 24, 2024

Also, if you go to the Actions tab in this repo, you'll be able to run the workflow manually. Check here.

from cityscope.github.io.

RELNO avatar RELNO commented on September 24, 2024

@yasushisakai following @crisjf comment #29 (comment), if possible I suggest we consolidate cityIO docs into one large md file. This is b/c the new doc site works well with large md files, given the treemap structure. Also, one md makes it easier to embed in @crisjf service.

from cityscope.github.io.

yasushisakai avatar yasushisakai commented on September 24, 2024

got it! CityScope/CS_CityIO@5ec07b1 does this.

the single md file is located here /master/docs/cityio_documentation.md

I'll go through typos and broken links and formatting once this workflow is established. Let me know what I'm missing

from cityscope.github.io.

crisjf avatar crisjf commented on September 24, 2024

I'll link it. @RELNO, just fyi the action and handle multiple mds. It just joins them into one single file keeping the order of the arguments in the action.

from cityscope.github.io.

RELNO avatar RELNO commented on September 24, 2024

@crisjf great, how's this file called at the end of the pipeline?

from cityscope.github.io.

crisjf avatar crisjf commented on September 24, 2024

All set, the file is synced here:
https://github.com/CityScope/cityscope.github.io/tree/new_docsite/docsite/docs/backend/CityIO

@RELNO please note the capital letters [C]ity[IO]

from cityscope.github.io.

RELNO avatar RELNO commented on September 24, 2024

Thanks both, closing

from cityscope.github.io.

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.