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

Fixup new docs #701

Merged
merged 1 commit into from
Jul 17, 2024
Merged

Fixup new docs #701

merged 1 commit into from
Jul 17, 2024

Conversation

gerrod3
Copy link
Contributor

@gerrod3 gerrod3 commented Jul 2, 2024

@pedro-psb How do I get the guides to be in order, without the numbers in the name?

@pedro-psb
Copy link
Member

@gerrod3
Copy link
Contributor Author

gerrod3 commented Jul 3, 2024

@pedro-psb Thanks for the link. Can you review this and see if I am missing anything big? I checked everything out and besides the issue I filed (pulp/pulp-docs#63), everything seems to be working and looking good.

Copy link
Member

@pedro-psb pedro-psb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The link within the site should use the (site:abs-path) pattern, as here.

The problem of using the real domain name is that when testing your local changes you could end up leaving your local server by accident, which could be confusing.

* Reference
* [Settings](https://pulpproject.org/pulp_python/docs/admin/reference/settings/)
* [Rest API](https://pulpproject.org/pulp_python/restapi/)
* [Changelog](https://pulpproject.org/pulp_python/changes/)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This hardcoded ToC is not required. It will be generated on build-time

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And appended to this file (when its working)

modifying the "policy" field.

Syncing all of PyPI can take a long time depending on your network and disk speeds. Check out
[pull-through caching](publish.md#enable-pull-through-caching)
Copy link
Member

@pedro-psb pedro-psb Jul 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this won't work, Mike had a similar problem last week.

My theory is that some config makes the path be relative to the html structure (guides/sync/index.html, rather than the actual guides dir). So ../publish.md would probably work ,but its weird. Or you can use the absolute links, which the recommended way.

@pedro-psb
Copy link
Member

@gerrod3 , I've fixed the index page issue.

@gerrod3 gerrod3 requested a review from pedro-psb July 8, 2024 17:09
@gerrod3 gerrod3 mentioned this pull request Jul 8, 2024
@gerrod3 gerrod3 linked an issue Jul 8, 2024 that may be closed by this pull request
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This page still has the production urls for internal links, use the [](site:{path}) here too

[noissue]
Copy link
Member

@pedro-psb pedro-psb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good!

# Build custom package
python -m build $PLUGIN_SOURCE
# Upload built package distributions to my-pypi
twine upload --repository-url $BASE_ADDR/pypi/my-pypi/simple/ -u admin -p password "$PLUGIN_SOURCE"dist/*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably have our example use API token auth, I don't recall if they've shut down username/password auth entirely yet but I remember reading that they were going to.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will need to add support then, currently we don't.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, right, this is uploading into a Pulp repository.

Yeah.


Creating a remote object informs Pulp about an external content source. In this case, we will be
using a fixture, but Python remotes can be anything that implements the PyPI API. This can be PyPI
itself, a fixture, or even an instance of Pulp 2.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this point we should remove Pulp 2 references

@gerrod3 gerrod3 merged commit f98e48d into pulp:main Jul 17, 2024
16 checks passed
@gerrod3 gerrod3 deleted the fix-new-docs branch July 17, 2024 14:45
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

Successfully merging this pull request may close these issues.

Fix documentation
3 participants