|
| 1 | +--- |
| 2 | +description: A skill that will register a new w3id for a new github project. |
| 3 | +--- |
| 4 | + |
| 5 | +For context See https://github.com/linkml/linkml-project-copier/issues/127 |
| 6 | + |
| 7 | +First, it will be necessary to create a fork of https://github.com/perma-id/w3id.org |
| 8 | + |
| 9 | +This might be in ~/repos/w3id.org - be sure it is up to date |
| 10 | + |
| 11 | +make a PR with a new folder ./{{ project_name }}/ |
| 12 | + |
| 13 | +This will have two files: |
| 14 | + |
| 15 | +.htaccess: |
| 16 | + |
| 17 | +``` |
| 18 | +Options +FollowSymLinks |
| 19 | +RewriteEngine on |
| 20 | +
|
| 21 | +# vocab/ end point |
| 22 | +RewriteRule ^vocab$ https://github.{{ github_org }}.io/{{ project_name }}/$1 |
| 23 | +RewriteRule ^vocab\/(.*)$ https://github.{{ github_org }}.io/{{ project_name }}/$1 [R=301,L] |
| 24 | +
|
| 25 | +# schema submodules |
| 26 | +RewriteRule ^schema\/(.*)$ https://raw.githubusercontent.com/{{ github_org }}/{{ project_name }}/main/src/{{ project_name }}/$1 [R=301,L] |
| 27 | +
|
| 28 | +# Schema artefacts use raw Github URLs |
| 29 | +# if suffix is yaml, redirect to LinkML YAML schema |
| 30 | +RewriteRule ^{{ project_name }}.yaml$ https://raw.githubusercontent.com/{{ github_org }}/{{ project_name }}/main/src/{{ project_name }}/merged/merged_hierarchy.yaml [R=302,L] |
| 31 | +
|
| 32 | +# if suffix is schema.json, redirect to JSON Schema |
| 33 | +RewriteRule ^{{ project_name }}.schema.json$ https://raw.githubusercontent.com/{{ github_org }}/{{ project_name }}/main/project/jsonschema/{{ project_name }}.schema.json [R=302,L] |
| 34 | +
|
| 35 | +# if suffix is owl, redirect to OWL |
| 36 | +RewriteRule ^{{ project_name }}.owl.ttl$ https://raw.githubusercontent.com/{{ github_org }}/{{ project_name }}/main/project/owl/{{ project_name }}.owl.ttl [R=302,L] |
| 37 | +
|
| 38 | +
|
| 39 | +# Schema elements use Github Pages |
| 40 | +# Rewrite Base URL |
| 41 | +RewriteRule ^(.*)$ https://github.{{ github_org }}.io/{{ project_name }}/elements/$1 [R=302,L] |
| 42 | +``` |
| 43 | + |
| 44 | +a README.md that contains homepages (ie github), documentation links, plus contacts |
0 commit comments