Comments (7)
while you do need to have the html files on GitHub somehow (either on the master branch or on the gh-pages branch), you definitely DO NOT NEED the node_modules
to be there. This is the repo for the documentation for codedoc, built using codedoc itself, and this is another example built using codedoc and hosted on GitHub pages, both on master branch, none having node_modules
(or .codedoc/node_modules
) on the repo.
that said, using GitHub Actions to not have the html
files directly on the master branch itself is a pretty nice idea. I have been meaning to get around to it but couldn't find the time (I mean codedoc itself is just released less than a week ago), so kudos for the nice solution! I'll modify the issue title to properly reflect that (from node_modules in git and GitHub Pages
to build files in git and GitHub Pages
).
P.S. you don't need the cd .codedoc && npm install
line. You can simply install codedoc cli beforehand and run codedoc update
or codedoc u
.
from codedoc.
added this section to official docs as well for how to achieve this. again, @LukasForst thanks for the neat solution!
from codedoc.
this solution resolves the issue. keeping it open until it is also added to the official documentation.
from codedoc.
Agggr, you're right about node_modules
, my bad, I'm not frontend dev, sorry!
About the - cd .codedoc && npm install
, I think that, in this case, the version of all libraries including codedoc
remains same as during the local development thanks to the package-lock.json
. Whereas using codedoc update
can result in updating the libraries, no? If this is the case, I would propose to stick with npm install
as if the pipeline would update libraries, it can potentially change some behavior or break something. However, if the commands are equal in terms of updating libraries, it is probably better to use codedoc update
. (again, not frontend developer, so not sure whether I got this right)
from codedoc.
thats a good point, so lets keep it as is. since that affects people collaborating on some documentation together as well, I think for convenience I'll add an install
command to CLI as well, which will just install packages instead of updating everything.
from codedoc.
it turns out there was a race condition for creating the assets
folder which sometimes caused some assets not to be created during the build process. should be fixed by this, deployed via @codedoc/[email protected]
from codedoc.
Thanks! One last thing, you misspelled my name 😄, no biggie though
proposed by Lukas Frost, is to put all
should be
proposed by Lukas Forst, is to put all
from codedoc.
Related Issues (20)
- The build process on gh-actions omits terminal output colors HOT 2
- Theme assets broken when hosted on GitLab Pages HOT 7
- New release with ansi_up fix HOT 4
- Hooking codedoc's router to run code on page change HOT 7
- Search shortcut (CMD+F / ctrl+F) displays the modal n times
- Help with plugin development and publishing on NPM HOT 7
- enhance the underline code block feature to support more languages HOT 2
- support info underlines in codeblocks
- update set-value to a non-vulnerable version
- Support RTL HOT 1
- decreasing the width-size of TOC HOT 2
- Ability to copy multiple lines from codeblocks HOT 7
- Running Codedoc as a container in Raspberry Pi
- GitHub Pages deployment failure after succeeding HOT 3
- Local build not working: TypeError: merge is not a function HOT 4
- Integrated Search missing HOT 2
- Update marked to 4.0.10 to avoid CVE-2022-21680 HOT 1
- Build not working: Non-string value passed to `ts.resolveTypeReferenceDirective` HOT 1
- Pre-build plugin HOT 1
- github action failure HOT 5
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 codedoc.