Skip to content

Commit

Permalink
Replace CSS class with td align, since GitHub markdown does not seem …
Browse files Browse the repository at this point in the history
…to allow a style tag
  • Loading branch information
arjun-menon committed Aug 6, 2024
1 parent 53b04d7 commit 67b6bbf
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ must run Alteza with trusted code, or in an isolated container. For example, in
* Directories containing index files should just be referred to by the directory name. For example, the index page `about-me/hobbies/index.md` (or `about-me/hobbies/index.py.html`) should just be linked to with a `link('hobbies')`.

12. **Built-in Functions and Fields**
<style>.tdc {text-align: center;}</style>
<table>
<tr>
<th rowspan="2">Built-in</th>
Expand All @@ -132,38 +131,38 @@ must run Alteza with trusted code, or in an isolated container. For example, in
<tr>
<td><code>link</code></td>
<td>...</td>
<td class="tdc">βœ…</td><td class="tdc">βœ…</td><td class="tdc">❌</td><td class="tdc">βœ…</td>
<td align="center">βœ…</td><td align="center">βœ…</td><td align="center">❌</td><td align="center">βœ…</td>
</tr>
<tr>
<td><code>path</code></td>
<td>...</td>
<td class="tdc">βœ…</td><td class="tdc">βœ…</td><td class="tdc">βœ…</td><td class="tdc">βœ…</td>
<td align="center">βœ…</td><td align="center">βœ…</td><td align="center">βœ…</td><td align="center">βœ…</td>
</tr>
<tr>
<td><code>dir</code></td>
<td>...</td>
<td class="tdc">βœ…</td><td class="tdc">βœ…</td><td class="tdc">βœ…</td><td class="tdc">βœ…</td>
<td align="center">βœ…</td><td align="center">βœ…</td><td align="center">βœ…</td><td align="center">βœ…</td>
</tr>
<tr>
<td>Modified Date</td>
<td>...</td>
<td class="tdc">βœ…</td><td class="tdc">βœ…</td><td class="tdc">βœ…</td><td class="tdc">βœ…</td>
<td align="center">βœ…</td><td align="center">βœ…</td><td align="center">βœ…</td><td align="center">βœ…</td>
</tr>
<tr>
<td>Idea Date</td>
<td>...</td>
<td class="tdc">βœ…</td><td class="tdc">βœ…</td><td class="tdc">βœ…</td><td class="tdc">βœ…</td>
<td align="center">βœ…</td><td align="center">βœ…</td><td align="center">βœ…</td><td align="center">βœ…</td>
</tr>
<tr>
<td>Title</td>
<td>The title is either the <code>title</code> YAML field, or if that isn't defined, the <code>.realName</code> of the file, which is the adjusted name of the file without its extension and a date prefix (if present) removed. The title isn't <em>properly</em> available to Python inside the page itself, or from <code>__config__.py</code>, since the page has not been processed when these are executed. If <code>.page</code> is accessed from these (the page or config), or if a <code>title</code> was never defined in the page, then the <code>.realName</code> of the file would be returned.
</td>
<td class="tdc">❌</td><td class="tdc">βœ…</td><td class="tdc">❌</td><td class="tdc">βœ…</td>
<td align="center">❌</td><td align="center">βœ…</td><td align="center">❌</td><td align="center">βœ…</td>
</tr>
<tr>
<td>YAML fields & other vars</td>
<td>...</td>
<td class="tdc">❌</td><td class="tdc">βœ…</td><td class="tdc">❌</td><td class="tdc">βœ…</td>
<td align="center">❌</td><td align="center">βœ…</td><td align="center">❌</td><td align="center">βœ…</td>
</tr>
<tr>
<td><code>readfile</code></td>
Expand All @@ -176,15 +175,15 @@ def readfile(file_path: str) -> str:
```

</td>
<td class="tdc">βœ…</td><td class="tdc">βœ…</td><td class="tdc">βœ…</td><td class="tdc">βœ…</td>
<td align="center">βœ…</td><td align="center">βœ…</td><td align="center">βœ…</td><td align="center">βœ…</td>
</tr>
<tr>
<td><code>sh</code></td>
<td>This exposes entire sh library. The current working directory (CWD) would be wherever the file being executed is located (regardless of whether the file is a regular page or index page or `__config__.py`, etc). If the file is a template, the CWD would be that of the page being processed.

See `sh`'s documentation here: https://sh.readthedocs.io/en/latest/
</td>
<td class="tdc">βœ…</td><td class="tdc">βœ…</td><td class="tdc">βœ…</td><td class="tdc">βœ…</td>
<td align="center">βœ…</td><td align="center">βœ…</td><td align="center">βœ…</td><td align="center">βœ…</td>
</tr>
</table>

Expand Down

0 comments on commit 67b6bbf

Please sign in to comment.