Files are not created in site/ after running mkdocs build
#4568
-
Edit N°3 : files do disappear on Linux, but not on macOSHi, I created a bash script that fetches the main branch from our repo, then does a few other things before moving the files to the folder where the web server is hosting the site. After running the mkdocs build command, some files are not converted to HTML when running on a Ubuntu VM, 20.0.4 LTS. When I run the exact same script on macOS, all the files are converted. How is that possible? Here’s the script: cd ~/GITHUB_REPOS
git clone [THE URL OF THE GIT]
cd gtfs.org
pip install -r requirements.txt
pip install git+https://****@github.com/squidfunk/mkdocs-material-insiders.git
sh ~/GITHUB_REPOS/tempsite/scripts/fetchdata.sh
mkdocs build --clean
cp -a ~/GITHUB_REPOS/tempsite/site/. /var/www/html/realsite/
sudo chown -R www-data:www-data /var/www/html/realsite && chmod -R 775 /var/www/html/realsite
rm -R ~/GITHUB_REPOS/tempsite/ Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
It's a good idea to debug this by removing the "few other things" you're doing to make sure that they are not interfering. We're running Insiders on Linux (GH Actions, so Ubuntu) to deploy our docs successfully. |
Beta Was this translation helpful? Give feedback.
-
I ran each line one by one and verified if files disappeared or not, the only one that deletes files is the mkdocs build --clean command. There's also this error message during the build process that appear on Linux but not on macOS:
What's strange is that the path is correct, the file is there in docs/, so I don't get why it says that. |
Beta Was this translation helpful? Give feedback.
-
I think I got it. There is a shell script being called before the mkdocs command and I was calling it with sh when I should've used bash, there were syntax errors with sh. Sorry for the trouble, mkdocs or insiders weren't the cause. How many hours have I spent when the only change required was |
Beta Was this translation helpful? Give feedback.
I think I got it. There is a shell script being called before the mkdocs command and I was calling it with sh when I should've used bash, there were syntax errors with sh. Sorry for the trouble, mkdocs or insiders weren't the cause. How many hours have I spent when the only change required was
sh
->./
...