Skip to content
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

Documentation fixes #233

Open
Aiky30 opened this issue Feb 25, 2021 · 1 comment
Open

Documentation fixes #233

Aiky30 opened this issue Feb 25, 2021 · 1 comment

Comments

@Aiky30
Copy link
Contributor

Aiky30 commented Feb 25, 2021

The following project is a good example of documentation configuration setup: https://github.com/evildmp/BrachioGraph/tree/master/docs

Mentions FIL, remove this from everywhere, this is a community project!

Important files:

  • conf.py
  • requires a requirements.txt just for the docs build. Located in the docs folder.
  • Add documentation standards file
  • make spelling_wordlist
@Aiky30
Copy link
Contributor Author

Aiky30 commented Sep 26, 2022

Document django-cms integration i.e. getting page versions etc:

This is a little more involved because you may want different things at this point, i.e. for preview you may want to look at any version for a page / language, I'm guessing that as you want the edit mode you want the latest draft.

from djangocms-versiong.constants import DRAFT

PageContent._original_manager.filter(
        page=source_page, language=language, version__state=DRAFT
).first()

You could also use the versioning helper remove_published_where instead of the '_original_manager'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant