Skip to content

Commit fee1687

Browse files
committed
Initial commit
0 parents  commit fee1687

File tree

20 files changed

+730
-0
lines changed

20 files changed

+730
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalisation
2+
* text=auto

.github/workflows/publish.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Publish to docs.flex.gd
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
workflow_dispatch:
8+
permissions:
9+
contents: write
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Configure Git Credentials
16+
run: |
17+
git config user.name github-actions[bot]
18+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: 3.x
22+
name: Set Cache ID
23+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
24+
- uses: actions/cache@v4
25+
with:
26+
key: mkdocs-material-${{ env.cache_id }}
27+
path: .cache
28+
restore-keys: |
29+
mkdocs-material-
30+
# - name: Build bot and viewer JSON metadata
31+
# run: |
32+
# cd parser
33+
34+
# sudo chmod +x ./install.sh
35+
# ./install.sh
36+
37+
# luvit main.lua
38+
39+
# cd ../
40+
41+
# rm -rf parser
42+
- run: pip install mkdocs-material
43+
- run: pip install -r requirements.txt
44+
- run: mkdocs gh-deploy --force

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Python venv exclusion for the internal documentation platform
2+
.venv
3+
venv
4+
5+
**.bat
6+
7+
# Luvit dependencies
8+
parser/deps
9+
10+
# metadata api
11+
docs/built-info
12+
13+
docs/api/
14+
15+
# Local caching
16+
.cache/
17+
18+
# macOS hidden files
19+
**._*
20+
**.DS_*

.markdownlint.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"MD046": false,
3+
"MD013": false,
4+
"MD059": false,
5+
"MD033": false,
6+
"MD010": false
7+
}

.vscode/extensions.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"recommendations": [
3+
"redhat.vscode-yaml",
4+
5+
"JohnnyMorganz.luau-lsp",
6+
7+
"DavidAnson.vscode-markdownlint",
8+
"yzhang.markdown-all-in-one"
9+
]
10+
}

.vscode/settings.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"yaml.schemas": {
3+
"https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml"
4+
},
5+
"yaml.customTags": [
6+
"!ENV scalar",
7+
"!ENV sequence",
8+
"!relative scalar",
9+
"tag:yaml.org,2002:python/name:material.extensions.emoji.to_svg",
10+
"tag:yaml.org,2002:python/name:material.extensions.emoji.twemoji",
11+
"tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format",
12+
"tag:yaml.org,2002:python/object/apply:pymdownx.slugs.slugify mapping"
13+
],
14+
"editor.formatOnSave": true,
15+
"editor.formatOnPaste": true,
16+
"editor.insertSpaces": false,
17+
"editor.tabSize": 4,
18+
"[markdown]": {
19+
"editor.defaultFormatter": "yzhang.markdown-all-in-one"
20+
},
21+
"[yaml]": {
22+
"editor.defaultFormatter": "redhat.vscode-yaml",
23+
"editor.tabSize": 4,
24+
},
25+
"[json]": {
26+
"editor.defaultFormatter": "vscode.json-language-features"
27+
},
28+
"Lua.diagnostics.globals": [
29+
"p"
30+
],
31+
"stylua.targetReleaseVersion": "latest",
32+
}

CONTRIBUTING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# 📝 Contribution Guidelines
2+
3+
In order to make the Flex documentation more organised and better for readers, we recommend you follow the contribution guidelines.
4+
5+
Please view the contribution guidelines [here](./docs/About/contributing.md) or via the [Flex Documentation website](https://docs.flex.gd/About/contributing/).

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# [Flex Documentation](https://docs.flex.gd)
2+
3+
[![Publish to docs.flex.gd](https://github.com/flex-utilities/docs/actions/workflows/publish.yml/badge.svg)](https://github.com/flex-utilities/docs/actions/workflows/publish.yml)
4+
5+
Welcome to the repository for Flex's online documentation!
6+
Documentation is hosted at <https://docs.flex.gd> for easily viewing information about the standard on an easy-to-use and beautiful site.
7+
8+
## What is Flex?
9+
10+
Please view the README about Flex at [docs/About/what-is-flex.md](./docs/About/what-is-flex.md) or look at the entire ["About" directory](./docs/About/).
11+
12+
## Contributing
13+
14+
Please make a **PULL REQUEST** with your changes so that they can be reviewed. All pull requests are subject to the [contribution guidelines](./docs/About/contributing.md).
15+
16+
<details>
17+
<summary>Previewing the documentation site</summary>
18+
19+
If you are working on the documentation and would like a live preview of the site, please use a Python virtual environment (venv).
20+
21+
```sh
22+
python3 -m venv venv
23+
```
24+
25+
After which you must install the requirements of the project using `pip`.
26+
27+
```sh
28+
python3 -m pip install -r requirements.txt
29+
```
30+
31+
Once all dependencies are installed, you may see a preview of your work using `mkdocs serve`.
32+
33+
</details>

TODO.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# To-Do List
2+
3+
This to-do list is split up into sections with tasks assigned to documentation maintainers.
4+
5+
## To-Do List for me (Richy)
6+
7+
- cross-reference with old documentation to ensure we arent missing any functions in the new documentation
8+
- Write a linter for this documentation:
9+
- Warn when there is a `code snippet` that doesnt have syntax highlighting applied to it
10+
- It should not error when it encounters just one error immediately. errors/warnings for linting must be appended to an array and then printed last. os.exit code shoudl be error if strict errors appended but no os.exit error code if there are only warnings.
11+
- Must check when "Lua" is used individually instead of "Luau". also detect "Lua's", etc. because Luau is used, not Lua.
12+
- Must check when the long hyphens are used or the non-standard quotes are used (the fancy ones instead of the programmer ones)
13+
- add emoji checking, allowing them only on level 3 headings (`###`). nowhere else.
14+
- ensure there is a luau type definition for the following things:
15+
- Drawing object
16+
- search for code snippets and ensure they have relevant, appropriate links
17+
- search for "TODO" messages to fix todo items
18+
19+
## Latest to-do list for Richy
20+
21+
- Make a document somewhere under the About section explaining why we dont test some functions from the original UNC, eg "Where is the cache library?"
22+
- where are mouse funcs or isrbxactive etc?
23+
- Potentially note that debug.getinfo is useless as we have better debug.info (just put this note in debug.getinfo, if you still want to implement getinfo then visit this link etc, but otherwise theyre somewhat similar)
24+
- "dont really care much about this function, but i think we should add it, since we did add setscriptable"
25+
- create documentation for `decompile` under SCRIPTS (not reflection!) group, and also every other function mentioned [here](https://github.com/sUNC-Utilities/docs.sunc.su/issues/162)
26+
- <https://synapsexdocs.github.io/custom-lua-functions/reflection-functions/#decompile>
27+
- cross off items from same github issue
28+
- cache library, even though it may seem redundant in the meantime (it will be removed in the future from the next version of sUNC)
29+
- <https://synapsexdocs.github.io/libraries/syn/>
30+
- <https://github.com/unified-naming-convention/NamingStandard/blob/305c31e4f469c056812c9f412c9a4d78293021bc/api/cache.md?plain=1>
31+
- `debug.getinfo`
32+
- <https://github.com/unified-naming-convention/NamingStandard/blob/305c31e4f469c056812c9f412c9a4d78293021bc/api/debug.md?plain=1#L70-L112>
33+
- <https://synapsexdocs.github.io/libraries/debug/#get-info>
34+
- Modify the documentation parser to ignore HTML comments in markdown (so that comments / todo notes dont have to be moved to the very bottom of a markdown file)
35+
- Document how the Rubiš API can be used (currently) to retrieve information about sUNC test results
36+
- note differences about public and private scraps
37+
- most test results are private
38+
- unfortunately we do not provide a way for the public to know whether a scrap posted on rubis is officially from sUNC, although by popular request we may add an endpoint to give in-depth sunc information (including verified results)
39+
- note that rubis results will be deprecated in the future (at least via the regular rubis api) and they will be migrated to the rubis partners api
705 KB
Loading

0 commit comments

Comments
 (0)