-
Notifications
You must be signed in to change notification settings - Fork 27
Documentation is out of date #134
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
Comments
The currently available release is 0.3, and its documentation is at https://github.com/projectfluent/python-fluent/blob/next-gen-api/fluent.runtime/docs/usage.rst. Sadly, I don't have access to rtd, so I can't update the docs hosted there. |
Thank you, I thought about many reasons why I couldn't get this to work with the docs at rtd. Could you add a notification to the master branch's README.md that developers should follow the documentation listed in the |
Or we could merge that branch to |
We should discuss merging to master. But the configured hook is out of date, and we need a secret from rtd. https://docs.readthedocs.io/en/latest/webhooks.html#webhook-deprecated-endpoints for details. |
If you let me know your username on RTD I can add you as an admin. I don't have admin rights to the GitHub project to be able to set it up myself. |
Edit: It appeared that the
fluent.runtime
I installed withpip install fluent.runtime
was actually a lot older than what I expected.When adding messages to Fluent bundles, the documentation at https://fluent-runtime.readthedocs.io/en/latest/index.html states you can directly add the messages as a template string like so:
In reality, you have to wrap the template string into a
FluentResource
and usebundle.add_resource
instead ofbundle.add_messages
because it does not exist. Theadd_resource
function checks if there is abody
key in theresource
function parameter, which is generated by theFluentResource
class.Also,
bundle.format()
does not exist.The text was updated successfully, but these errors were encountered: