Giter VIP home page Giter VIP logo

Comments (3)

ljgarcia avatar ljgarcia commented on July 20, 2024

As a developer, I want to create the metadata file and get this automatically translated to its corresponding page. For instance, if I have metadata about a dataset, this should create a new Dataset entry under the folder Datasets.

For this we need to:

  • Create a metadata folder under the root
  • Create the same subfolders as for the pages structure
  • Create a metadata sample for any of the categories=folders
  • Implement the code needed to take the metadata and create a new page under the right category (to start with, the content will be exactly the same as the json)

from zbmed-semtec.github.io.

ljgarcia avatar ljgarcia commented on July 20, 2024

For the metadata sample, we can use a dataset, and the json-ld can be taken from https://github.com/zbmed-semtec/bioschemas-github-markup-example/blob/gh-pages-with-markup/data.md?plain=1

from zbmed-semtec.github.io.

ljgarcia avatar ljgarcia commented on July 20, 2024

@honeyl3 If there are subtasks inside any issue (see the first comment in this issue), please add the checks as you progress on the tasks. Once all the tasks are done, you can move the issue to the Complete column, not before. I marked as done two of them, the other two cannot be marked yet as done.

Some comments about coding styles:

  • Use English for commits, comments, variable names, file names
  • Never use full paths in a code, full paths only work on your own computer
  • Do not use code files that do it all directly, use functions that do bits. Even if the whole thing needs (by now) only one function, create that function. There will always be a function that starts it all.
  • Add documentation/comments to the code. Have a look to some tips at https://github.com/zbmed-semtec/code-guidelines/blob/main/python.md

About the code itself, the one at I will now comment on the code at https://github.com/honeyl3/zbmed-semtec.github.io/blob/main/code/createPage.py

  • Once you run this code, based on what exist in the metadata folder right now, you should end up with subfolder /docs/datasets (because the code should create the same subfolders under /docs/ as they exist in /metadata/) and a file /docs/datasets/sample.md. By now, the content of this file will be exactly the same as the one inside /metadata/datasets/sample.json

Please work a bit more on the code and let me know when it is ready to review. Thanks

from zbmed-semtec.github.io.

Related Issues (12)

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.