Git Product home page Git Product logo

voc4cat-template's People

Contributors

dalito avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dalito

voc4cat-template's Issues

Fix action permission for creating gh-pages

This probably broke when the repo was moved to this organization. GitHub changed the defaults in Feb-2023. The repo was created as personal repo before this date but the move to NFDI4Cat happened afterwards in Mar-2023.

Index page of documentation misses new release

Originally reported at nfdi4cat/voc4cat#70.

This occurs only if the published documentation is built in the release pipeline because the new ìndex.html` is not copied to the root of gh-pages.

In contrast, the merge pipeline moves the new ìndex.html` to the root of gh-pages. Therefore, this issue can only be observed between a release and the next PR-merge.

Fix CI to avoid detached head in MRs - [merged]

Merges CI-fix-detached-head -> main

The clean stage failed typically. The problem was a consequence of the "detached head" state. The detached head state is caused by the checkout of a specific commit (in above log Checking out cadcc9e8 as refs/merge-requests/10/head...). This is nicely explained and visualized in https://circleci.com/blog/git-detached-head-state/.

The problem is caused by the way gitlab CI does the chekcout which is by commit-hash. In order to avoid the detached-head it is sufficient to checkout the branch of the merge request after the gitlab initiated checkout. But there is an additional complication: The clone in gitlab CI does not know anything about branches. Therefore, we need to fetch branch information first (git fetch --tags) before we can checkout the merge-request´s branch.

This also sets CI to use Python 3.10.8 instead of latest. This is because some dependencies do not yet work with Python 3.11.

Related to https://gitlab.fokus.fraunhofer.de/nfdi4cat/ta1-ontologies/voc4cat-playground/-/issues/3

Don't trigger action on PR comments

The action "CI on pull request create or update" is also triggered if a new comment is made an a PR. This is caused by using the activity type "edited".

Using the defaults (opened, synchronize, or reopened) should be sufficient.

Finalize deployment to gh-pages

  • describe where to find the xlsx-file that matches the current SKOS/turtle-vocabulary version (see README.md)
  • describe where to find the pyLODE-generated HTML-documentation for the current vocabulary version (see README.md)
  • construct url with version for formerly released versions of the vocabulary. Whenever a new version is tagged the deployment should use the version in the url. This requires another pipeline triggered by a new tag on main.

Could cookiecutter (& cruft) improve the template?

For more complex templates cookiecutter is a popular tool to generate a new project based on a template. It is currently a bit unclear, if our template has enough fields that demand customisation and therefore justify using cookiecutter.

Another aspect of a cookiecutter-template may be that later changes made in the template can be easily transferred to the generated project. To make this happen cookiecutter must be used together with another tool, e.g. cruft.

🐞 Index page listing all versions is missing

Observed in version

v0.7.4

Description

The index.html page that links the different vocabularies/versions is not present at the root of gh-pages (but one level up in dev/ folder). It should be moved down one level after creation.

Notes on how to connect to Zenodo

Related documentation from GitHub:

Related documentation from Zenodo:

Related documentation on citation metadata (optional):

Note: The presence of the file and the fields specified therein implies that data, which were auto-generated by GitHub, will be overridden (not merged!) with data from CITATION.cff or .zenodo.json. So new contributors/authors may not show up in Zenodo if authors are given also in CITATION.cff. This may be desired or not. Just be aware of it.
It is also possible to use one to the other citation formats to prevent side-effects on Zenodo and use .zenodo.json for Zenodo-related metadata, for example to specify the related Zenodo communities).

Tutorial-like docs:

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.