New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MooseDocs website for Ferret #252
Comments
@cticenhour I do have a question (we can discuss on this issue instead of the closed PR): I was linking parts of input files of the ferret/tutorial folder to the website tutorial pages and it does not like if I change the ferret/tutorial folder. For example, if I rename problem1.i to single_domain.i and put it in a folder located at ferret/tutorial/single_domain It says something about running the moosedocs.py command. What exactly is that? |
I would have to see the exact console message to be sure, but generally if you are moving files around while serving the page, MooseDocs gets upset. It develops an initial file table based on git ls-files, so it sees what you have committed or staged to be commited in the repo. Anytime you are actively moving things around, thereby creating "new" files that MooseDocs doesn't know about, you need to make sure you stage those and then re-run MooseDocs so that it can become aware of that new file. |
Yeah, that's it. Definitely has to do with moving files around. So I guess the procedure is then to always update the git ls-files if I change anything in the main Ferret repo related to tutorial files that I want linked. thanks! |
What is the procedure for generating the links ? For example, if I add a new file to the main repo and want to link to it within the /docs/content? I checked your Zapdos macro and don't see anything that I think is relevant. I could be wrong of course! |
If its code or input files you want to include, you want to use the MooseDocs Listing Extension. You can see an example if this in use for a whole input file and a GMSH mesh file in the electromagnetics module, though this isn't limited to just inputs or support files - you can even produce blocks that show a particular C++ method in your source code. For future reference, I should also link the landing page for the MooseDocs syntax documentation. |
Thanks. Let's say I add a new file IS it |
|
Yeah, seems I need to commit it.
So I guess I should just get used to first pushing files to git and then running moosedocs and then pushing the doc changes. I suppose I answered my question ! |
You don't need to push - getting it in your local git database is enough:
to stage it is sufficient. |
Yup, that worked. Awesome! |
@cticenhour when working on this, I noticed that if I remove a bunch of objects from the main repo of Ferret, the docs system still searches for the objects when building the syntax list. Did I do something wrong? I tried also to rerun the build FerretApp step as well... |
What errors or messages are you seeing? When you remove objects did you also remove the connected stub documentation files for those objects in your doc/content directory? |
For example,
was some object that was removed. I did not remove the stub docs / I suppose that is needed... |
Just delete the relevant .md files in content/source/ ? |
Yes, you should delete .md files associated with the objects you are removing or have already removed. |
@cticenhour yeah, that was it. Thanks
Really nice that you guys have 10 femtosecond resolution on the builds |
Here is an interesting error @cticenhour : In doc/content/tutorials/magnetic_ringdown.md, I am using the line
but this yields
as an output on the tutorial html version. I checked that if I list |
@mangerij I just got into the office and will take a look in between meetings. |
addressing #252, and also adding ScalFMM build script back, accidenta…
documentation updates to website #252
Hi @cticenhour , I was trying to publish this just now. I have an error here when I try to deploy https://github.com/mangerij/ferret/actions/runs/4582655159/jobs/8093145150 Unfortunately, I do not see any log of the error. Do you happen to know what is going on? I added all of the output of the doc command to the orphan branch gh-pages. |
@cticenhour nevermind :) It worked! |
Yay! Looks great :) |
Use the MooseDocs system to create a website for Ferret.
The text was updated successfully, but these errors were encountered: