Watching of serve command doesn't seem to be recursive
See original GitHub issueI am not sure if it is a bug (if recursive watching is intended to work), but I believe such feature would be useful.
$ tree docs
docs
├── assets
│ ├── codedoc-bundle.entry.js
│ ├── codedoc-bundle.js
│ ├── codedoc-bundle.meta.json
│ └── codedoc-styles.css
├── dist
│ ├── api
│ │ └── index.html
│ ├── codedoc-bundle.entry.js
│ ├── codedoc-bundle.js
│ ├── codedoc-bundle.meta.json
│ ├── codedoc-styles.css
│ └── index.html
└── md
├── api
│ └── index.md
├── index.md
└── _toc.md
when I run codedoc serve
, it doesn’t pickup changes in docs/md/api/index.md
(it detects changes in docs/md/index.md
correctly).
It’s possible I have it misconfigured, my config.ts
(which works for serve
and build
, meaning it compiles and paths are correct):
import {configuration} from '@codedoc/core';
import {theme} from './theme';
export const config = /*#__PURE__*/configuration({
theme, // --> add the theme. modify `./theme.ts` for chaning the theme.
page: {
title: {
base: 'Golden Gadget' // --> the base title of your doc pages
}
},
dest: {
html: 'docs/dist',
assets: 'docs/dist',
bundle: '.',
styles: '.',
namespace: '/golden-gadget'
}
});
I don’t think I changed any other file (except index.tsx
in content
, but that should not be related, just the hamburger being opened by default).
If anyone encounters similar issue, here is my current workaround:
find docs/md | entr -r codedoc serve
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
node.js - nodemon recursive watch issue? - Stack Overflow
I have installed nodemon using command:
Read more >Recursive file watching broken on linux with Node >= 14 #1159
watch () when the recursive option is true. This is only an issue on Linux apparently. Though the exception is only thrown by...
Read more >Is there a paging version of `watch`? - Server Fault
Now start your watch command. You can then use C-a <ESC> to page around the display. Unfortunately, the display doesn't refresh while in...
Read more >Unison User Manual - UPenn CIS
Overview. Unison is a file-synchronization tool for Unix and Windows. It allows two replicas of a collection of files and directories to be...
Read more >Can scp create a directory if it doesn't exist?
-r Recursively copy entire directories. Note that scp follows symâ bolic links encountered in the tree traversal. .... Share.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry, don’t have much free time now. Just quickly tested it on a fresh project (same directory structure as my original project), and change detection is working now 🙂. Thank you very much.
as part of this commit, this also should be fixed. the fix is deployed via the combination of
@codedoc/core@0.2.0
and@codedoc/cli@0.2.0
, and you should be able to update to it like this:in this update, tiered watching is used, and markdown files are now watched using
node-watch
, which should be able to properly watch recursive file changes on Linux machines as well.ts-node-dev
is only used for watching TypeScript code, which should already be working properly with recursive watching even on Linux machines.@mnn since I do not have a Linux machine for testing, I am going to keep this issue open for now until you confirm this update fixes the recursive watching issue.