The directory tree logic is the following: program_name/program_name.extension.
Each conf file can have an associated Markdown file named program_name/program_name.md.
You can also put the conf inside the actual path of the configuration file following this logic: program_name/path/to/conf/program_name.conf
Examples:
neovim/neovim.conf
nginx/etc/nginx/nginx.conf
nginx/etc/nginx/nginx.md
Syntax highlighting
In order to display the proper syntax highlighting on Gitea, you should use the appropriate file extension as described here: https://github.com/alecthomas/chroma