This repository generates pages for GitHub or GitLab based on your CFF. This means that your CFF is well-suited for both machine processing and human readability.
Project description
cff2pages
Motivation
The Citation.cff is a fantastic format that combines human-readable and machine-readable metadata about its repository. It provides linking systems with important metadata about the presented project and gives people the ability to reference the project, among other things. However, for a wide range of users, the YAML file format can seem intimidating, whereas a clean website is generally more readable. This project aims to automate the conversion of cff files, so that maintaining the cff file pays off for developers in terms of the project's presentation, thereby ensuring that the website representation is retained.
Project Description
cff2pages is envisioned as a Python package, designed to automate the extraction of metadata from your project's Citation.cff file, and swiftly generate a sleek, static HTML page. This versatile page can serve as a vivid representation of your project on Github/Gitlab Pages.
Usage
cd project_folder
pip install cff2pages
cff2pages
Gitlab CI Runner
stages:
- Pages
pages:
stage: Pages
image: python:3.11
script:
- python -m pip install cff2pages
- cff2pages
artifacts:
paths:
- public
Github Workflow
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install cff2pages
cff2pages
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './public'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
Roadmap
- 0.0.1 version in pypi
- convert all cff-attributes
- abstract
- authors
- cff-version
- commit
- contact
- date
- doi
- identifiers
- doi
- swh
- url
- keywords
- license
- license-url
- message
- preferred-citation
- references (new, but not published!)
- repository
- repository-artifact
- repository-code
- title
- type
- url
- version
- simple conversion from cff to html
- working samples for GitHub and gitlab
- integrate cff2pages into given html
- change styles
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cff2pages-0.1.2.tar.gz
.
File metadata
- Download URL: cff2pages-0.1.2.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bd23e887beb89885d48215b832f74c9991155e6e0433c6267227b1f7458dee6 |
|
MD5 | 9086192125d7a2da988a8d730886b233 |
|
BLAKE2b-256 | 581899887ebd339d938aa893d7bad8940802df1e6ffc1745d288ae2942ba1665 |
File details
Details for the file cff2pages-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: cff2pages-0.1.2-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2905357da430094a287f1dd85b22085bb1ca8941be52141fc39a7f66b41dedd8 |
|
MD5 | 67cb37c48c6e622b9e62d9a4a7deb63c |
|
BLAKE2b-256 | 9632e90f6e41eacba35be66e1114bf3289170202dc7449537f8aae59af82a309 |