Skip to content

Commit c86eabf

Browse files
author
R. S. Doiel
committed
commiting to main
1 parent fa3c579 commit c86eabf

8 files changed

+51
-33
lines changed

README.md

+10-9
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
The tools are intended to be run from the project root directory. `cmt` expects the file path of your codemeta.json file as well as one or more target files to be generated. The target file's extension determines the generated content. The tool can generate the following project files based on the contents of the codemeta.json file. `cme` expects the file path of your codemeta.json file and optionally the attributes of the CodeMeta object you wish to manage.
77

8-
`cme` is used to create manage "codemeta.json". `cmt` is used to generate the following.
8+
`cme` is used to create and manage "codemeta.json". `cmt` is used to generate the following.
99

1010
- CITATION.cff
1111
- version.ts, version.js, version.go or version.py
@@ -14,21 +14,22 @@ The tools are intended to be run from the project root directory. `cmt` expects
1414

1515
## Create and manage your file
1616

17-
`cme` is for managing your "codemeta.json" file. Using the "interactive" option it will prompt for the various top level attributes and allow you to set them. For complex list attributes like "author", "contributor", "maintainer" you can enter those using YAML notation. Here's an example of setting up to use `cme` to create and edit the "codemeta.json" file.
17+
`cme` is for managing your "codemeta.json" file. If only the "codemeta.json" file is provided then you'll be in an "interactive" mode. You will be prompted for each top level attribute. You either press enter and accept the current value or replace the value. For complex attributes like "author", and "keywords"[^1] you use YAML notation followed by a line containing only a period to indicate completion. If you enter only the line with a period then the current value remains. Here's an example of setting up to use `cme` to create and edit the "codemeta.json" file.
18+
19+
[^1]: For a full list of complex fields see the user manual for `cme`.
1820

1921
~~~shell
20-
# Set our EDITOR environment variable
21-
export EDITOR=micro
22-
cme -e -i codemeta.json
22+
cme codemeta.json
2323
~~~
2424

25-
The will let you iterate over the top level CodeMeta object attributes. For multi line or list attributes your favorate editor will be used to create or update the values.
25+
The will let you iterate over the top level CodeMeta object attributes. For multi line or list attributes your favorite editor will be used to create or update the values.
26+
27+
Here's an example of updating the version and `.releaseNotes` attributes but instead of the direct input you edit the value using the Micro Editor[^2].
2628

27-
Here's an example of updating the version and `.releaseNotes` attributes (I assume you have the
28-
EDITOR environment variable already set).
29+
[^2]: You need to have [Micro Editor](http://micro-editor.github.io) installed for this to work.
2930

3031
~~~shell
31-
cme -e codemeta.json version releaseNotes
32+
cme codemeta.json version releaseNotes -e
3233
~~~
3334

3435
Since the version is short you'll just be prompted to type in a new version string. You release notes maybe longer so for that you'll drop into your editor.

index.html

+31-14
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h1 id="codemeta-tools">CodeMeta Tools</h1>
3434
following project files based on the contents of the codemeta.json file.
3535
<code>cme</code> expects the file path of your codemeta.json file and
3636
optionally the attributes of the CodeMeta object you wish to manage.</p>
37-
<p><code>cme</code> is used to create manage “codemeta.json”.
37+
<p><code>cme</code> is used to create and manage “codemeta.json”.
3838
<code>cmt</code> is used to generate the following.</p>
3939
<ul>
4040
<li>CITATION.cff</li>
@@ -43,22 +43,26 @@ <h1 id="codemeta-tools">CodeMeta Tools</h1>
4343
<li>page.hbs (handlebars template) or page.tmpl (Pandoc template)</li>
4444
</ul>
4545
<h2 id="create-and-manage-your-file">Create and manage your file</h2>
46-
<p><code>cme</code> is for managing your “codemeta.json” file. Using the
47-
“interactive” option it will prompt for the various top level attributes
48-
and allow you to set them. For complex list attributes like “author”,
49-
“contributor”, “maintainer” you can enter those using YAML notation.
50-
Here’s an example of setting up to use <code>cme</code> to create and
51-
edit the “codemeta.json” file.</p>
52-
<pre class="shell"><code># Set our EDITOR environment variable
53-
export EDITOR=micro
54-
cme -e -i codemeta.json</code></pre>
46+
<p><code>cme</code> is for managing your “codemeta.json” file. If only
47+
the “codemeta.json” file is provided then you’ll be in an “interactive”
48+
mode. You will be prompted for each top level attribute. You either
49+
press enter and accept the current value or replace the value. For
50+
complex attributes like “author”, and “keywords”<a href="#fn1"
51+
class="footnote-ref" id="fnref1" role="doc-noteref"><sup>1</sup></a> you
52+
use YAML notation followed by a line containing only a period to
53+
indicate completion. If you enter only the line with a period then the
54+
current value remains. Here’s an example of setting up to use
55+
<code>cme</code> to create and edit the “codemeta.json” file.</p>
56+
<pre class="shell"><code>cme codemeta.json</code></pre>
5557
<p>The will let you iterate over the top level CodeMeta object
56-
attributes. For multi line or list attributes your favorate editor will
58+
attributes. For multi line or list attributes your favorite editor will
5759
be used to create or update the values.</p>
5860
<p>Here’s an example of updating the version and
59-
<code>.releaseNotes</code> attributes (I assume you have the EDITOR
60-
environment variable already set).</p>
61-
<pre class="shell"><code>cme -e codemeta.json version releaseNotes</code></pre>
61+
<code>.releaseNotes</code> attributes but instead of the direct input
62+
you edit the value using the Micro Editor<a href="#fn2"
63+
class="footnote-ref" id="fnref2"
64+
role="doc-noteref"><sup>2</sup></a>.</p>
65+
<pre class="shell"><code>cme codemeta.json version releaseNotes -e</code></pre>
6266
<p>Since the version is short you’ll just be prompted to type in a new
6367
version string. You release notes maybe longer so for that you’ll drop
6468
into your editor.</p>
@@ -98,6 +102,19 @@ <h2 id="additional-project-documentation">Additional Project
98102
<li><a href="INSTALL.html">installation</a></li>
99103
<li><a href="LICENSE">license</a></li>
100104
</ul>
105+
<section id="footnotes" class="footnotes footnotes-end-of-document"
106+
role="doc-endnotes">
107+
<hr />
108+
<ol>
109+
<li id="fn1"><p>For a full list of complex fields see the user manual
110+
for <code>cme</code>.<a href="#fnref1" class="footnote-back"
111+
role="doc-backlink">↩︎</a></p></li>
112+
<li id="fn2"><p>You need to have <a
113+
href="http://micro-editor.github.io">Micro Editor</a> installed for this
114+
to work.<a href="#fnref2" class="footnote-back"
115+
role="doc-backlink">↩︎</a></p></li>
116+
</ol>
117+
</section>
101118
</section>
102119
</body>
103120
</html>
1.7 KB
Binary file not shown.

pagefind/index/en-US_9acb2bd.pf_index

15 KB
Binary file not shown.

pagefind/pagefind-entry.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version":"1.3.0","languages":{"en-US":{"hash":"en-US_326fe02a3ab5f","wasm":"en-US","page_count":11}}}
1+
{"version":"1.3.0","languages":{"en-US":{"hash":"en-US_a3c076af8c816","wasm":"en-US","page_count":11}}}
184 Bytes
Binary file not shown.

presentations/presentation1.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<meta name="author" content="R. S. Doiel, [email protected]" />
1010
<meta name="date" content="2025-01-13" />
1111
<meta name="keywords" content="CodeMeta, projects, build" />
12-
<title>CMTools, codemeta driven builds</title>
12+
<title>CMTools, CodeMeta driven builds</title>
1313
<style type="text/css">
1414
code{white-space: pre-wrap;}
1515
span.smallcaps{font-variant: small-caps;}
@@ -98,7 +98,7 @@
9898
</head>
9999
<body>
100100
<div class="slide titlepage">
101-
<h1 class="title">CMTools, codemeta driven builds</h1>
101+
<h1 class="title">CMTools, CodeMeta driven builds</h1>
102102
<p class="author">
103103
R. S. Doiel, <a href="mailto:[email protected]"
104104
class="email">[email protected]</a>
@@ -188,12 +188,12 @@ <h1>Project maintenance, old way</h1>
188188
<ul>
189189
<li>very tedious</li>
190190
<li>often incomplete done</li>
191-
<li>lower quality -&gt; higher maintainence</li>
191+
<li>lower quality -&gt; higher maintenance</li>
192192
</ul>
193193
</div>
194194
<div id="proposed-maintenance-cycle" class="slide section level1">
195195
<h1>Proposed maintenance cycle</h1>
196-
<p>One command for each supported langauge:</p>
196+
<p>One command for each supported language:</p>
197197
<ul>
198198
<li>Python
199199
<ul>
@@ -296,7 +296,7 @@ <h1>Or quick install</h1>
296296
<h1>Something to consider</h1>
297297
<blockquote>
298298
<p>Software lives longer than expected, long lived software requires
299-
maintainence</p>
299+
maintenance</p>
300300
</blockquote>
301301
</div>
302302
<div id="reference-links" class="slide section level1">

presentations/presentation1.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "CMTools, codemeta driven builds"
2+
title: "CMTools, CodeMeta driven builds"
33
author: "R. S. Doiel, <[email protected]>"
44
institute: |
55
Caltech Library,
@@ -74,11 +74,11 @@ The artifact are easy to keep up to date.
7474
7575
- very tedious
7676
- often incomplete done
77-
- lower quality -> higher maintainence
77+
- lower quality -> higher maintenance
7878

7979
# Proposed maintenance cycle
8080

81-
One command for each supported langauge:
81+
One command for each supported language:
8282

8383
- Python
8484
- `cmt codemeta.json CITATION.cff about.md version.py`
@@ -155,7 +155,7 @@ irm https://caltechlibrary.github.io/CMTools/installer.ps1 | iex
155155
# Something to consider
156156

157157
> Software lives longer than expected,
158-
> long lived software requires maintainence
158+
> long lived software requires maintenance
159159
160160
# Reference links
161161

0 commit comments

Comments
 (0)