Skip to content

Commit af49b7b

Browse files
authored
Merge pull request #772 from Bilal2453/docs-to-dir
docs: move to new directory
2 parents d25ba1a + 64601e9 commit af49b7b

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

.ci/check_docs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
lua docgen.lua
5+
lua docs/docgen.lua
66

7-
git diff --quiet -- docs.md
8-
git diff --quiet -- meta.lua
7+
git diff --quiet -- docs/docs.md
8+
git diff --quiet -- docs/meta.lua

.ci/docscov.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ method_definitions=$(tail -n +$after_funcs src/luv.c | sed -n '/luaL_Reg/,/^\};$
1414

1515
for fn in `echo "$func_definitions" | grep -oP "\s+ \{\"\K([^\"]+)(?=\",)"`; do
1616
# count instances of '### `uv.fn_name' in the docs
17-
count=$(grep -oPc "^#+\s+\`uv\.$fn\b" docs.md)
17+
count=$(grep -oPc "^#+\s+\`uv\.$fn\b" docs/docs.md)
1818

1919
if [ $count -eq 0 ] ; then
2020
echo $fn
@@ -24,7 +24,7 @@ done
2424

2525
for fn in `echo "$method_definitions" | grep -oP "\s+ \{\"\K([^\"]+)(?=\",)"`; do
2626
# count instances of '> method form something:fn_name' in the docs
27-
count=$(grep -oPc "^> method form [^:]+:$fn\b" docs.md)
27+
count=$(grep -oPc "^> method form [^:]+:$fn\b" docs/docs.md)
2828

2929
if [ $count -eq 0 ] ; then
3030
echo "$fn (method form)"

.ci/make_rockspec.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ sed -e "${script}" -i rockspecs/luv-${version}.rockspec
1919
# .tar.gz
2020
rm -rf luv-${version}
2121
mkdir -p luv-${version}/deps
22-
cp -r src cmake CMakeLists.txt LICENSE.txt README.md docs.md libluv.pc.in luv-${version}/
22+
cp -r src cmake CMakeLists.txt LICENSE.txt README.md docs/docs.md libluv.pc.in luv-${version}/
2323
cp -r deps/libuv deps/lua-compat-5.3 deps/*.cmake deps/lua_one.c luv-${version}/deps/
2424
COPYFILE_DISABLE=true tar -czvf luv-${version}.tar.gz luv-${version}
2525
rm -rf luv-${version}

.gitattributes

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
docs.md linguist-documentation
2-
docs.md linguist-generated
3-
meta.lua linguist-generated
1+
docs/docs.md linguist-documentation
2+
docs/docs.md linguist-generated
3+
docs/meta.lua linguist-generated

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This library makes libuv available to lua scripts. It was made for the [luvit](
1515

1616
The library can be used by multiple threads at once. Each thread is assumed to load the library from a different `lua_State`. Luv will create a unique `uv_loop_t` for each state. You can't share uv handles between states/loops.
1717

18-
- [Luv docs](docs.md)
18+
- [Luv docs](docs/docs.md)
1919
- [Libuv docs](http://docs.libuv.org/)
2020

2121
```lua

docgen.lua renamed to docs/docgen.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
--- the luv project. It processes documentation sections from docs.lua,
33
--- and writes the output to markdown (docs.md) and Lua files (meta.lua).
44

5-
local docs = require('docs')
5+
local docs = dofile('docs/docs.lua')
66
local doctop = docs[1]
77
local types = docs[2]
88

@@ -863,10 +863,10 @@ local function main()
863863
-- Generate types for large inline types
864864
gen_types_for_doc(doctop)
865865

866-
local outdoc = assert(io.open('docs.md', 'w'))
866+
local outdoc = assert(io.open('docs/docs.md', 'w'))
867867
Doc.write(outdoc, doctop)
868868

869-
local outmeta = assert(io.open('meta.lua', 'w'))
869+
local outmeta = assert(io.open('docs/meta.lua', 'w'))
870870
Meta.write(outmeta, doctop)
871871
end
872872

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)