Open mnesarco opened 1 year ago
Apparently hyde only works with python2. So it is basically unmaintained. Is there another way to generate the docs?
I run hyde in docker https://github.com/stlab/libraries/tree/main/docs#running-hyde-in-docker There are a couple of issues with hyde right now that still require manual editing of the results for stlab docs. Hyde will strip additional yaml tags instead of preserving them issue 75. We use an additional tag for examples. Hyde also changes how the yaml is quoted which breaks our use of markdown in yaml text. This may be fixable on our side. For example;
This:
- description: |
Specify the mode by which the serial queue runs tasks:
- `schedule_mode::single` — Yield to the executor between runs of individual tasks. This mode is preferrable if you are expecting tasks to take a long amount of time.
- `schedule_mode::all` — Yield to the executor once all tasks available at the start of processing have been run. This mode is preferrable if you are expecting tasks to take a short amount of time.
Turns into this - and then fails markdownify because \n
is not a yaml new-line. We might be able to fix this by replacing \n
characters with liquid. I haven't tried.
- description: "Specify the mode by which the serial queue runs tasks:\n\n- `schedule_mode::single` — Yield to the executor between runs of individual tasks. This mode is preferrable if you are expecting tasks to take a long amount of time.\n- `schedule_mode::all` — Yield to the executor once all tasks available at the start of processing have been run. This mode is preferrable if you are expecting tasks to take a short amount of time.\n"
This issue may be a Jekyll Issue and not a Hyde issue - I haven't fully investigated but \n
does look to be a valid quoted character in yaml strings (https://yaml.org/spec/1.2.2/#rule-ns-esc-line-feed).
I run hyde in docker https://github.com/stlab/libraries/tree/main/docs#running-hyde-in-docker There are a couple of issues with hyde right now that still require manual editing of the results for stlab docs. Hyde will strip additional yaml tags instead of preserving them issue 75. We use an additional tag for examples. Hyde also changes how the yaml is quoted which breaks our use of markdown in yaml text. This may be fixable on our side. For example;
This:
- description: |
Specify the mode by which the serial queue runs tasks:
- `schedule_mode::single` — Yield to the executor between runs of individual tasks. This mode is preferrable if you are expecting tasks to take a long amount of time.
- `schedule_mode::all` — Yield to the executor once all tasks available at the start of processing have been run. This mode is preferrable if you are expecting tasks to take a short amount of time.
Turns into this - and then fails markdownify because \n
is not a yaml new-line. We might be able to fix this by replacing \n
characters with liquid. I haven't tried.
- description: "Specify the mode by which the serial queue runs tasks:\n\n- `schedule_mode::single` — Yield to the executor between runs of individual tasks. This mode is preferrable if you are expecting tasks to take a long amount of time.\n- `schedule_mode::all` — Yield to the executor once all tasks available at the start of processing have been run. This mode is preferrable if you are expecting tasks to take a short amount of time.\n"
This issue may be a Jekyll Issue and not a Hyde issue - I haven't fully investigated but \n
does look to be a valid quoted character in yaml strings (https://yaml.org/spec/1.2.2/#rule-ns-esc-line-feed).
Last commit to hyde repo was 7 years ago. Probably it is better to change to something more actively maintained.
Hyde isn't super active, but there have been many commits that are more recent - https://github.com/adobe/hyde/commits/master
I am sorry for the confusion. I was confusing it with https://github.com/hyde/hyde
What I want is to read the current docs in its html form. The public online docs are outdated (1.6.0).
What can I do to generate them?
I have found some scripts in stlab/docs
like generate_docs.sh
and build.sh
but those are not that generate the html docs.
Is there an easy way to just generate the html docs?
Ah - I see. The HTML docs are generated by github pages from main on every commit to main. No need to manually regenerate them. The docs are current (see, for example https://stlab.cc/libraries/concurrency/default_executor.hpp/).
Oh, Thank you. stlab.cc points to an outdated version: https://stlab.cc/concurrency/2017/05/11/concurrency.html
Main page is outdated. And links to a very old docs:
The link you site is a blog post - not the API docs. But I'll keep this issue open to update the front page.
Thank you. The outdated site front page is a bit confusing.
Hi Friends, Online docs seems outdated, so I am trying to generate it locally, but the
generate_docs.sh
script fails with a lot of syntax errors: