Closed jspaaks closed 4 years ago
@1. I based this off of entangled's claim; the only supporting example I could find was https://github.com/zyedidia/Literate. I find src
more recognizable, so let's keep that.
@ 2, 3, 4, 6 I was able to do the main parts of the guide with the following layout, which I think is more readable:
.
├── cgi
│ ├── apache2
│ ├── cgi-newtonraphson.cpp
│ └── deps
├── cli
│ ├── algebra.hpp
│ ├── cli-newtonraphson.cpp
│ ├── newtonraphson.exe
│ └── newtonraphson.hpp
├── flask
│ ├── newtonraphsonpy.cpython-36m-x86_64-linux-gnu.so -> ../swagger/newtonraphsonpy.cpython-36m-x86_64-linux-gnu.so
│ └── webapp.py
├── react
│ ├── app.js
│ ├── example-app.html
│ ├── newtonraphsonwasm.js -> ../webassembly/newtonraphsonwasm.js
│ ├── newtonraphsonwasm.wasm -> ../webassembly/newtonraphsonwasm.wasm
│ └── worker.js
├── openapi
│ ├── api.py
│ ├── newtonraphsonpy.cpython-36m-x86_64-linux-gnu.so
│ ├── openapi.yaml
│ ├── py-newtonraphson.cpp
│ └── webservice.py
└── webassembly
├── example.html
├── newtonraphsonwasm.js
├── newtonraphsonwasm.wasm
└── wasm-newtonraphson.cpp
There are a couple of places where we will have duplication, we can either make copies or have softlinks like I did in the tree above.
I like it, some notes
swagger
to openapi
as that is the current name of it.PYTHONPATH=openapi python flask/webapp.py
mv swagger openapi
doneWorking on this as part of #66 and PR #71.
BTW do we want one Makefile
or per-method Makefile
s?
Many projects use a Makefile in each dir, don't think it will help us much. I like to keep a single Makefile.
OK
Lets make separate Makefiles and Markdown will do later.
@jspaaks this issue can be closed now, right?
Couple of observations on the directory structure of ad7ca360c3a519b2f5f3722aed438ef877b49d51.
lit
for literary programming, not asrc
like we have now.[src|lit]/cpp
with the C++ code snippets in itdeps/lohmann
tocpp
as well./bin
also needs to be moved to lower in the treecypress
undertests
, so a reader knows what it is conceptually even if they don't know the namecypress
apache2
andcgi-bin
(also we have 2cgi-bin
s)