...
- Copy folders and files from product's folder in the nonrtric repo. Things to copy, if they exist, e.g.:
- "src" folder
- "api" folder
- "config" folder
- Dockerfile
- eclipse-formatter.xml
- pom.xml
- README.md
- tox.ini
- .readthedocs.yaml
- Remove For Java projects, remove ".nonrtric" from the "groupId" tag in the pom file.
- For Java projects, change the name of the product and change the image name in the "docker-maven-plugin" configuration in the pom file.
- For Go projects, copy the "build-<product name>-ubuntu.sh", "container-tag.yaml", and "generate_swagger_docs.sh" (if it exists) files. Adapt the paths in the files to fit the new project structure.
- Copy the top level ".gitignore" file from the "nonrtric" repo and add the content of the ".gitignore" file in the original product's folder.
- Create a folder named "docs" in the new repo.
- Copy the "docs/images" folder to the docs folder of the new repo, and remove images that are not used in the product's documentation.
- Copy the "docs/_static" folder to the docs folder of the new repo.
- Copy the "docs/conf.py" file to the docs folder of the new repo. Edit it, and from the "linkcheck_ignore" remove the paths not relevant for the product. Also remove unused things from the "redoc" part and any unused "intersphinx_mapping".
- Copy the "docs/conf.yaml" file to the docs folder of the new repo. Edit it and change the "project" to fit the name of the product.
- Copy the "docs/favicon.ico" to the docs folder of the new repo.
- Copy the "requirements-docs.txt" to the docs folder of the new repo.
- Copy all the "rst" files, except for "use-cases.rst" and "requirements.rst" to the docs folder of the new repo.
- Remove "./use-cases.rst" and "./requirements.rst" from the "index.rst" file.
- Adapt the paths to the Swagger generated api files in "conf.py" and "api-docs.rst". Example: "../r-app-catalogue/api/rac-api.json" should be "../api/rac-api.json".
- Go through and adapt or remove all the other "rst" files to fit the product. Remember to update the "index.rst" file for all removed files. Run a search for the product's name in all files to see if anything more needs fixing, "grep -rnw '.' -e 'r-app-catalogue'".
- Adapt paths in Docker files if needed.
- Build the documentation from the top level with the command "tox". Fix any problems that might arise.
- Build the project and fix any problems that might arise:
For Java projects: Run "mvn install" from the top level.
For Go projects: Run "go build", "go test ./...", and "docker build". - Stage everything, commit and push to Nordix and upstream.
- Make sure the " rtdv3-global-verify-master" job that verifies the readthedocs is successful in Gerrit in o-ran-sc.
...