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

Make it possible to view generated .html doc files with local browser #687

Open
dabrahams opened this issue Aug 9, 2023 · 1 comment
Open
Labels
enhancement Improvements or enhancements to existing functionality

Comments

@dabrahams
Copy link

Feature Name

Browsable local files

Description

When trying to come up with a correct configuration to generate documentation in a GitHub Action, Docc is quite opaque. One thing that hurts is that I can't reproduce the command locally and validate it by looking at the files in a browser. If you could make that work, it would be easier to get this set up and working.

Motivation

No response

Importance

No response

Alternatives Considered

No response

@dabrahams dabrahams added the enhancement Improvements or enhancements to existing functionality label Aug 9, 2023
@ethan-kusters
Copy link
Contributor

Hi @dabrahams – thanks for the filing this. As a workaround – I generally use a python http server to test his kind of thing locally.

So assuming you're publishing a framework called MyFramework from a repository in a /docs directory:

swift package generate-documentation --target MyFramework --output-path /path/to/docs
cd /path/to/docs
python3 -m http.server
# open localhost:8000/documentation/MyFramework

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements or enhancements to existing functionality
Projects
None yet
Development

No branches or pull requests

2 participants