1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

autogenerated mdbook documentation

This commit is contained in:
Terts Diepraam 2022-01-20 16:46:49 +01:00
parent 951035e49c
commit cf42008150
118 changed files with 781 additions and 179 deletions

View file

@ -9,6 +9,7 @@ version = "0.0.9"
authors = ["uutils developers"] authors = ["uutils developers"]
license = "MIT" license = "MIT"
description = "coreutils ~ GNU coreutils (updated); implemented as universal (cross-platform) utils, written in Rust" description = "coreutils ~ GNU coreutils (updated); implemented as universal (cross-platform) utils, written in Rust"
default-run = "coreutils"
homepage = "https://github.com/uutils/coreutils" homepage = "https://github.com/uutils/coreutils"
repository = "https://github.com/uutils/coreutils" repository = "https://github.com/uutils/coreutils"

2
docs/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
book
_generated

185
docs/CONTRIBUTING.html Normal file

File diff suppressed because one or more lines are too long

1
docs/CONTRIBUTING.md Normal file
View file

@ -0,0 +1 @@
# Contributing

View file

@ -1,28 +0,0 @@
.. print machine hardware name
====
arch
====
.. FIXME: this needs to be autogenerated somehow
--------
Synopsis
--------
``arch`` [OPTION]...
-----------
Description
-----------
``arch`` is an alias for ``uname -m``. They both print the machine hardware
name.
An exit code of zero indicates success, whereas anything else means failure.
For this program, a non-zero exit code generally means the user provided
invalid options.
-h, --help print a help menu for this program displaying accepted
options and arguments
-v, --version print the version number of this program

9
docs/book.toml Normal file
View file

@ -0,0 +1,9 @@
[book]
authors = ["uutils contributors"]
language = "en"
multilingual = false
src = "src"
title = "Uutils Documentation"
[output.html]
git-repository-url = "https://github.com/rust-lang/cargo/tree/master/src/doc/src"

20
docs/create_docs.py Normal file
View file

@ -0,0 +1,20 @@
# Simple script to create the correct SUMMARY.md and other files
# for the mdbook documentation.
# Note: This will overwrite the existing files!
import os
with open('src/utils/index.md', 'w') as index:
with open('src/SUMMARY.md', 'w') as summary:
summary.write("# Summary\n\n")
summary.write("* [Introduction](introduction.md)\n")
summary.write("* [Contributing](contributing.md)\n")
summary.write("* [Utils](utils/index.md)\n")
index.write("# Utils\n\n")
for d in sorted(os.listdir('../src/uu')):
with open(f"src/utils/{d}.md", 'w') as f:
f.write(f"# {d}\n\n")
f.write(f"{{{{ #include ../../_generated/{d}-help.md }}}}\n")
print(f"Created docs/src/utils/{d}.md")
summary.write(f" * [{d}](utils/{d}.md)\n")
index.write(f"* [{d}](./{d}.md)\n")

View file

@ -1 +0,0 @@
book

View file

@ -1,6 +0,0 @@
[book]
authors = ["Terts Diepraam"]
language = "en"
multilingual = false
src = "src"
title = "Uutils Documentation"

View file

@ -1,3 +0,0 @@
# Summary
- [Chapter 1](./chapter_1.md)

View file

@ -1 +0,0 @@
# Chapter 1

View file

@ -1,24 +0,0 @@
.. uutils documentation master file, created by
sphinx-quickstart on Tue Dec 5 23:20:18 2017.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
..
spell-checker:ignore (directives) genindex maxdepth modindex toctree ; (misc) quickstart
Welcome to uutils' documentation!
=================================
.. toctree::
:maxdepth: 2
:caption: Contents:
arch
uutils
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

105
docs/src/SUMMARY.md Normal file
View file

@ -0,0 +1,105 @@
# Summary
* [Introduction](introduction.md)
* [Contributing](contributing.md)
* [Utils](utils/index.md)
* [arch](utils/arch.md)
* [base32](utils/base32.md)
* [base64](utils/base64.md)
* [basename](utils/basename.md)
* [basenc](utils/basenc.md)
* [cat](utils/cat.md)
* [chcon](utils/chcon.md)
* [chgrp](utils/chgrp.md)
* [chmod](utils/chmod.md)
* [chown](utils/chown.md)
* [chroot](utils/chroot.md)
* [cksum](utils/cksum.md)
* [comm](utils/comm.md)
* [cp](utils/cp.md)
* [csplit](utils/csplit.md)
* [cut](utils/cut.md)
* [date](utils/date.md)
* [dd](utils/dd.md)
* [df](utils/df.md)
* [dircolors](utils/dircolors.md)
* [dirname](utils/dirname.md)
* [du](utils/du.md)
* [echo](utils/echo.md)
* [env](utils/env.md)
* [expand](utils/expand.md)
* [expr](utils/expr.md)
* [factor](utils/factor.md)
* [false](utils/false.md)
* [fmt](utils/fmt.md)
* [fold](utils/fold.md)
* [groups](utils/groups.md)
* [hashsum](utils/hashsum.md)
* [head](utils/head.md)
* [hostid](utils/hostid.md)
* [hostname](utils/hostname.md)
* [id](utils/id.md)
* [install](utils/install.md)
* [join](utils/join.md)
* [kill](utils/kill.md)
* [link](utils/link.md)
* [ln](utils/ln.md)
* [logname](utils/logname.md)
* [ls](utils/ls.md)
* [mkdir](utils/mkdir.md)
* [mkfifo](utils/mkfifo.md)
* [mknod](utils/mknod.md)
* [mktemp](utils/mktemp.md)
* [more](utils/more.md)
* [mv](utils/mv.md)
* [nice](utils/nice.md)
* [nl](utils/nl.md)
* [nohup](utils/nohup.md)
* [nproc](utils/nproc.md)
* [numfmt](utils/numfmt.md)
* [od](utils/od.md)
* [paste](utils/paste.md)
* [pathchk](utils/pathchk.md)
* [pinky](utils/pinky.md)
* [pr](utils/pr.md)
* [printenv](utils/printenv.md)
* [printf](utils/printf.md)
* [ptx](utils/ptx.md)
* [pwd](utils/pwd.md)
* [readlink](utils/readlink.md)
* [realpath](utils/realpath.md)
* [relpath](utils/relpath.md)
* [rm](utils/rm.md)
* [rmdir](utils/rmdir.md)
* [runcon](utils/runcon.md)
* [seq](utils/seq.md)
* [shred](utils/shred.md)
* [shuf](utils/shuf.md)
* [sleep](utils/sleep.md)
* [sort](utils/sort.md)
* [split](utils/split.md)
* [stat](utils/stat.md)
* [stdbuf](utils/stdbuf.md)
* [sum](utils/sum.md)
* [sync](utils/sync.md)
* [tac](utils/tac.md)
* [tail](utils/tail.md)
* [tee](utils/tee.md)
* [test](utils/test.md)
* [timeout](utils/timeout.md)
* [touch](utils/touch.md)
* [tr](utils/tr.md)
* [true](utils/true.md)
* [truncate](utils/truncate.md)
* [tsort](utils/tsort.md)
* [tty](utils/tty.md)
* [uname](utils/uname.md)
* [unexpand](utils/unexpand.md)
* [uniq](utils/uniq.md)
* [unlink](utils/unlink.md)
* [uptime](utils/uptime.md)
* [users](utils/users.md)
* [wc](utils/wc.md)
* [who](utils/who.md)
* [whoami](utils/whoami.md)
* [yes](utils/yes.md)

1
docs/src/contributing.md Normal file
View file

@ -0,0 +1 @@
{{ #include ../../CONTRIBUTING.md }}

8
docs/src/introduction.md Normal file
View file

@ -0,0 +1,8 @@
# Introduction
uutils is an attempt at writing universal (as in cross-platform) CLI
utilities in [Rust](https://www.rust-lang.org). The source code is hosted
on [GitHub](https://github.com/uutils/coreutils).
> Note: This manual is automatically generated from the source code and is
> a work in progress.

3
docs/src/utils/arch.md Normal file
View file

@ -0,0 +1,3 @@
# arch
{{ #include ../../_generated/arch-help.md }}

3
docs/src/utils/base32.md Normal file
View file

@ -0,0 +1,3 @@
# base32
{{ #include ../../_generated/base32-help.md }}

3
docs/src/utils/base64.md Normal file
View file

@ -0,0 +1,3 @@
# base64
{{ #include ../../_generated/base64-help.md }}

View file

@ -0,0 +1,3 @@
# basename
{{ #include ../../_generated/basename-help.md }}

3
docs/src/utils/basenc.md Normal file
View file

@ -0,0 +1,3 @@
# basenc
{{ #include ../../_generated/basenc-help.md }}

3
docs/src/utils/cat.md Normal file
View file

@ -0,0 +1,3 @@
# cat
{{ #include ../../_generated/cat-help.md }}

3
docs/src/utils/chcon.md Normal file
View file

@ -0,0 +1,3 @@
# chcon
{{ #include ../../_generated/chcon-help.md }}

3
docs/src/utils/chgrp.md Normal file
View file

@ -0,0 +1,3 @@
# chgrp
{{ #include ../../_generated/chgrp-help.md }}

3
docs/src/utils/chmod.md Normal file
View file

@ -0,0 +1,3 @@
# chmod
{{ #include ../../_generated/chmod-help.md }}

3
docs/src/utils/chown.md Normal file
View file

@ -0,0 +1,3 @@
# chown
{{ #include ../../_generated/chown-help.md }}

3
docs/src/utils/chroot.md Normal file
View file

@ -0,0 +1,3 @@
# chroot
{{ #include ../../_generated/chroot-help.md }}

3
docs/src/utils/cksum.md Normal file
View file

@ -0,0 +1,3 @@
# cksum
{{ #include ../../_generated/cksum-help.md }}

3
docs/src/utils/comm.md Normal file
View file

@ -0,0 +1,3 @@
# comm
{{ #include ../../_generated/comm-help.md }}

3
docs/src/utils/cp.md Normal file
View file

@ -0,0 +1,3 @@
# cp
{{ #include ../../_generated/cp-help.md }}

3
docs/src/utils/csplit.md Normal file
View file

@ -0,0 +1,3 @@
# csplit
{{ #include ../../_generated/csplit-help.md }}

3
docs/src/utils/cut.md Normal file
View file

@ -0,0 +1,3 @@
# cut
{{ #include ../../_generated/cut-help.md }}

3
docs/src/utils/date.md Normal file
View file

@ -0,0 +1,3 @@
# date
{{ #include ../../_generated/date-help.md }}

3
docs/src/utils/dd.md Normal file
View file

@ -0,0 +1,3 @@
# dd
{{ #include ../../_generated/dd-help.md }}

3
docs/src/utils/df.md Normal file
View file

@ -0,0 +1,3 @@
# df
{{ #include ../../_generated/df-help.md }}

View file

@ -0,0 +1,3 @@
# dircolors
{{ #include ../../_generated/dircolors-help.md }}

View file

@ -0,0 +1,3 @@
# dirname
{{ #include ../../_generated/dirname-help.md }}

3
docs/src/utils/du.md Normal file
View file

@ -0,0 +1,3 @@
# du
{{ #include ../../_generated/du-help.md }}

3
docs/src/utils/echo.md Normal file
View file

@ -0,0 +1,3 @@
# echo
{{ #include ../../_generated/echo-help.md }}

3
docs/src/utils/env.md Normal file
View file

@ -0,0 +1,3 @@
# env
{{ #include ../../_generated/env-help.md }}

3
docs/src/utils/expand.md Normal file
View file

@ -0,0 +1,3 @@
# expand
{{ #include ../../_generated/expand-help.md }}

3
docs/src/utils/expr.md Normal file
View file

@ -0,0 +1,3 @@
# expr
{{ #include ../../_generated/expr-help.md }}

3
docs/src/utils/factor.md Normal file
View file

@ -0,0 +1,3 @@
# factor
{{ #include ../../_generated/factor-help.md }}

3
docs/src/utils/false.md Normal file
View file

@ -0,0 +1,3 @@
# false
{{ #include ../../_generated/false-help.md }}

3
docs/src/utils/fmt.md Normal file
View file

@ -0,0 +1,3 @@
# fmt
{{ #include ../../_generated/fmt-help.md }}

3
docs/src/utils/fold.md Normal file
View file

@ -0,0 +1,3 @@
# fold
{{ #include ../../_generated/fold-help.md }}

3
docs/src/utils/groups.md Normal file
View file

@ -0,0 +1,3 @@
# groups
{{ #include ../../_generated/groups-help.md }}

View file

@ -0,0 +1,3 @@
# hashsum
{{ #include ../../_generated/hashsum-help.md }}

3
docs/src/utils/head.md Normal file
View file

@ -0,0 +1,3 @@
# head
{{ #include ../../_generated/head-help.md }}

3
docs/src/utils/hostid.md Normal file
View file

@ -0,0 +1,3 @@
# hostid
{{ #include ../../_generated/hostid-help.md }}

View file

@ -0,0 +1,3 @@
# hostname
{{ #include ../../_generated/hostname-help.md }}

3
docs/src/utils/id.md Normal file
View file

@ -0,0 +1,3 @@
# id
{{ #include ../../_generated/id-help.md }}

102
docs/src/utils/index.md Normal file
View file

@ -0,0 +1,102 @@
# Utils
* [arch](./arch.md)
* [base32](./base32.md)
* [base64](./base64.md)
* [basename](./basename.md)
* [basenc](./basenc.md)
* [cat](./cat.md)
* [chcon](./chcon.md)
* [chgrp](./chgrp.md)
* [chmod](./chmod.md)
* [chown](./chown.md)
* [chroot](./chroot.md)
* [cksum](./cksum.md)
* [comm](./comm.md)
* [cp](./cp.md)
* [csplit](./csplit.md)
* [cut](./cut.md)
* [date](./date.md)
* [dd](./dd.md)
* [df](./df.md)
* [dircolors](./dircolors.md)
* [dirname](./dirname.md)
* [du](./du.md)
* [echo](./echo.md)
* [env](./env.md)
* [expand](./expand.md)
* [expr](./expr.md)
* [factor](./factor.md)
* [false](./false.md)
* [fmt](./fmt.md)
* [fold](./fold.md)
* [groups](./groups.md)
* [hashsum](./hashsum.md)
* [head](./head.md)
* [hostid](./hostid.md)
* [hostname](./hostname.md)
* [id](./id.md)
* [install](./install.md)
* [join](./join.md)
* [kill](./kill.md)
* [link](./link.md)
* [ln](./ln.md)
* [logname](./logname.md)
* [ls](./ls.md)
* [mkdir](./mkdir.md)
* [mkfifo](./mkfifo.md)
* [mknod](./mknod.md)
* [mktemp](./mktemp.md)
* [more](./more.md)
* [mv](./mv.md)
* [nice](./nice.md)
* [nl](./nl.md)
* [nohup](./nohup.md)
* [nproc](./nproc.md)
* [numfmt](./numfmt.md)
* [od](./od.md)
* [paste](./paste.md)
* [pathchk](./pathchk.md)
* [pinky](./pinky.md)
* [pr](./pr.md)
* [printenv](./printenv.md)
* [printf](./printf.md)
* [ptx](./ptx.md)
* [pwd](./pwd.md)
* [readlink](./readlink.md)
* [realpath](./realpath.md)
* [relpath](./relpath.md)
* [rm](./rm.md)
* [rmdir](./rmdir.md)
* [runcon](./runcon.md)
* [seq](./seq.md)
* [shred](./shred.md)
* [shuf](./shuf.md)
* [sleep](./sleep.md)
* [sort](./sort.md)
* [split](./split.md)
* [stat](./stat.md)
* [stdbuf](./stdbuf.md)
* [sum](./sum.md)
* [sync](./sync.md)
* [tac](./tac.md)
* [tail](./tail.md)
* [tee](./tee.md)
* [test](./test.md)
* [timeout](./timeout.md)
* [touch](./touch.md)
* [tr](./tr.md)
* [true](./true.md)
* [truncate](./truncate.md)
* [tsort](./tsort.md)
* [tty](./tty.md)
* [uname](./uname.md)
* [unexpand](./unexpand.md)
* [uniq](./uniq.md)
* [unlink](./unlink.md)
* [uptime](./uptime.md)
* [users](./users.md)
* [wc](./wc.md)
* [who](./who.md)
* [whoami](./whoami.md)
* [yes](./yes.md)

View file

@ -0,0 +1,3 @@
# install
{{ #include ../../_generated/install-help.md }}

3
docs/src/utils/join.md Normal file
View file

@ -0,0 +1,3 @@
# join
{{ #include ../../_generated/join-help.md }}

3
docs/src/utils/kill.md Normal file
View file

@ -0,0 +1,3 @@
# kill
{{ #include ../../_generated/kill-help.md }}

3
docs/src/utils/link.md Normal file
View file

@ -0,0 +1,3 @@
# link
{{ #include ../../_generated/link-help.md }}

3
docs/src/utils/ln.md Normal file
View file

@ -0,0 +1,3 @@
# ln
{{ #include ../../_generated/ln-help.md }}

View file

@ -0,0 +1,3 @@
# logname
{{ #include ../../_generated/logname-help.md }}

3
docs/src/utils/ls.md Normal file
View file

@ -0,0 +1,3 @@
# ls
{{ #include ../../_generated/ls-help.md }}

3
docs/src/utils/mkdir.md Normal file
View file

@ -0,0 +1,3 @@
# mkdir
{{ #include ../../_generated/mkdir-help.md }}

3
docs/src/utils/mkfifo.md Normal file
View file

@ -0,0 +1,3 @@
# mkfifo
{{ #include ../../_generated/mkfifo-help.md }}

3
docs/src/utils/mknod.md Normal file
View file

@ -0,0 +1,3 @@
# mknod
{{ #include ../../_generated/mknod-help.md }}

3
docs/src/utils/mktemp.md Normal file
View file

@ -0,0 +1,3 @@
# mktemp
{{ #include ../../_generated/mktemp-help.md }}

3
docs/src/utils/more.md Normal file
View file

@ -0,0 +1,3 @@
# more
{{ #include ../../_generated/more-help.md }}

3
docs/src/utils/mv.md Normal file
View file

@ -0,0 +1,3 @@
# mv
{{ #include ../../_generated/mv-help.md }}

3
docs/src/utils/nice.md Normal file
View file

@ -0,0 +1,3 @@
# nice
{{ #include ../../_generated/nice-help.md }}

3
docs/src/utils/nl.md Normal file
View file

@ -0,0 +1,3 @@
# nl
{{ #include ../../_generated/nl-help.md }}

3
docs/src/utils/nohup.md Normal file
View file

@ -0,0 +1,3 @@
# nohup
{{ #include ../../_generated/nohup-help.md }}

3
docs/src/utils/nproc.md Normal file
View file

@ -0,0 +1,3 @@
# nproc
{{ #include ../../_generated/nproc-help.md }}

3
docs/src/utils/numfmt.md Normal file
View file

@ -0,0 +1,3 @@
# numfmt
{{ #include ../../_generated/numfmt-help.md }}

3
docs/src/utils/od.md Normal file
View file

@ -0,0 +1,3 @@
# od
{{ #include ../../_generated/od-help.md }}

3
docs/src/utils/paste.md Normal file
View file

@ -0,0 +1,3 @@
# paste
{{ #include ../../_generated/paste-help.md }}

View file

@ -0,0 +1,3 @@
# pathchk
{{ #include ../../_generated/pathchk-help.md }}

3
docs/src/utils/pinky.md Normal file
View file

@ -0,0 +1,3 @@
# pinky
{{ #include ../../_generated/pinky-help.md }}

3
docs/src/utils/pr.md Normal file
View file

@ -0,0 +1,3 @@
# pr
{{ #include ../../_generated/pr-help.md }}

View file

@ -0,0 +1,3 @@
# printenv
{{ #include ../../_generated/printenv-help.md }}

3
docs/src/utils/printf.md Normal file
View file

@ -0,0 +1,3 @@
# printf
{{ #include ../../_generated/printf-help.md }}

3
docs/src/utils/ptx.md Normal file
View file

@ -0,0 +1,3 @@
# ptx
{{ #include ../../_generated/ptx-help.md }}

3
docs/src/utils/pwd.md Normal file
View file

@ -0,0 +1,3 @@
# pwd
{{ #include ../../_generated/pwd-help.md }}

View file

@ -0,0 +1,3 @@
# readlink
{{ #include ../../_generated/readlink-help.md }}

View file

@ -0,0 +1,3 @@
# realpath
{{ #include ../../_generated/realpath-help.md }}

View file

@ -0,0 +1,3 @@
# relpath
{{ #include ../../_generated/relpath-help.md }}

3
docs/src/utils/rm.md Normal file
View file

@ -0,0 +1,3 @@
# rm
{{ #include ../../_generated/rm-help.md }}

3
docs/src/utils/rmdir.md Normal file
View file

@ -0,0 +1,3 @@
# rmdir
{{ #include ../../_generated/rmdir-help.md }}

3
docs/src/utils/runcon.md Normal file
View file

@ -0,0 +1,3 @@
# runcon
{{ #include ../../_generated/runcon-help.md }}

3
docs/src/utils/seq.md Normal file
View file

@ -0,0 +1,3 @@
# seq
{{ #include ../../_generated/seq-help.md }}

3
docs/src/utils/shred.md Normal file
View file

@ -0,0 +1,3 @@
# shred
{{ #include ../../_generated/shred-help.md }}

3
docs/src/utils/shuf.md Normal file
View file

@ -0,0 +1,3 @@
# shuf
{{ #include ../../_generated/shuf-help.md }}

3
docs/src/utils/sleep.md Normal file
View file

@ -0,0 +1,3 @@
# sleep
{{ #include ../../_generated/sleep-help.md }}

3
docs/src/utils/sort.md Normal file
View file

@ -0,0 +1,3 @@
# sort
{{ #include ../../_generated/sort-help.md }}

3
docs/src/utils/split.md Normal file
View file

@ -0,0 +1,3 @@
# split
{{ #include ../../_generated/split-help.md }}

3
docs/src/utils/stat.md Normal file
View file

@ -0,0 +1,3 @@
# stat
{{ #include ../../_generated/stat-help.md }}

3
docs/src/utils/stdbuf.md Normal file
View file

@ -0,0 +1,3 @@
# stdbuf
{{ #include ../../_generated/stdbuf-help.md }}

3
docs/src/utils/sum.md Normal file
View file

@ -0,0 +1,3 @@
# sum
{{ #include ../../_generated/sum-help.md }}

3
docs/src/utils/sync.md Normal file
View file

@ -0,0 +1,3 @@
# sync
{{ #include ../../_generated/sync-help.md }}

3
docs/src/utils/tac.md Normal file
View file

@ -0,0 +1,3 @@
# tac
{{ #include ../../_generated/tac-help.md }}

3
docs/src/utils/tail.md Normal file
View file

@ -0,0 +1,3 @@
# tail
{{ #include ../../_generated/tail-help.md }}

3
docs/src/utils/tee.md Normal file
View file

@ -0,0 +1,3 @@
# tee
{{ #include ../../_generated/tee-help.md }}

3
docs/src/utils/test.md Normal file
View file

@ -0,0 +1,3 @@
# test
{{ #include ../../_generated/test-help.md }}

View file

@ -0,0 +1,3 @@
# timeout
{{ #include ../../_generated/timeout-help.md }}

Some files were not shown because too many files have changed in this diff Show more