Comments (3)
Keeping this issue as snippet-focused makes sense to me but note that this problem affects any source code change. The live update feature currently only supports changes in markdown files – so any changes in a project's source code will not be reflected without a complete rebuild.
from swift-docc-plugin.
@ethan-kusters, it looks like the preview action in docc monitors the documentation bundle, but not other directories in the source tree.
A naive approach could be to set the project root (containing the docs bundle) as monitoring target, so any file change would trigger a rebuild?
The problem with that is that DirectoryMonitor
will re-run convertAction
on every change, i.e. rebuild the whole thing from scratch (unless docc has caching internally that I don't know about yet).
Rebuilding docs on code change would also require building the code (at least obtaining a fresh symbols.json
). At least that part is already incremental.
Sounds like a topic for another RFC to align on possible approaches with sane performance costs?
from swift-docc-plugin.
Is this issue still being considered?
from swift-docc-plugin.
Related Issues (20)
- Ability to generate Objective-C docs for Swift symbols
- swift-docc-plugin generate-documentation results in empty docc catalog - no symbols - when using a local binary target/XCFramework
- inconsistent recognition of the target provided to `preview-documentation`
- No symbols are extracted when generating documentation (w/ the CLI) while the package uses a local XCFramework reference HOT 1
- Generated documentation could not be viewed on GitHub pages saying "The page you’re looking for can’t be found" HOT 1
- Add support for ObjC/C Package HOT 2
- Preview Documentation reports error on exit HOT 1
- New `--include-extended-types` changes seems to break `--additional-symbol-graph-dir` HOT 4
- Failure to produce offline documentation if you consume C++ libraries via Swift C++/Interop HOT 5
- error: no such module 'UIKit' HOT 4
- Warning when building a package using the plugin with Swift 5.9. HOT 1
- GitHub hosted pages fail to load function pages HOT 2
- Making this a plugin dependency for a project slows down builds and CI for many people who don't need to generate docs.
- generated docs only report: "An unknown error occurred." HOT 5
- error: Plugin does not have access to a tool named ‘docc’ HOT 1
- Text("Hoge", bundle: .module) fails to output static site
- req: dead link checking command for plugin
- Issue with target which have binaryTarget dependency
- Avoid plugin build warnings in addTargetDependencies on Linux HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift-docc-plugin.