Skip to content

Commit

Permalink
Switch from bower to NPM
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Sep 2, 2022
1 parent 5dff409 commit 8aa0419
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 28 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
- run: 'npm install -g less less-plugin-clean-css'
- uses: shivammathur/setup-php@v2
with:
php-version: 8.0
Expand Down
1 change: 1 addition & 0 deletions website/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/css/all.min.css
/bower_components/
/couscous.phar
node_modules
8 changes: 0 additions & 8 deletions website/bower.json

This file was deleted.

27 changes: 7 additions & 20 deletions website/default.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<title>Couscous! Put your documentation in a website!</title>
<meta name="description" content="Couscous! Put your documentation in a website!">

<link href="{{ baseUrl }}/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="{{ baseUrl }}/bower_components/fontawesome/css/font-awesome.min.css" rel="stylesheet">
<link href="{{ baseUrl }}/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="{{ baseUrl }}/node_modules/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="{{ baseUrl }}/css/prettify.tomorrow-night-eighties.css" rel="stylesheet">
<link href="{{ baseUrl }}/css/all.min.css" rel="stylesheet">

Expand All @@ -27,6 +27,8 @@
<!-- Google webmasters verification -->
<meta name="google-site-verification" content="bjh41nmytWyBkuM8373PL1j6upqoiAQXSb19vMGJZDY" />

<script defer data-domain="couscous.io" src="https://plausible.io/js/plausible.js"></script>

</head>

<body class="{{ bodyClass }}">
Expand Down Expand Up @@ -100,9 +102,9 @@

{% block javascripts %}

<script src="{{ baseUrl }}/bower_components/jquery/dist/jquery.min.js"></script>
<script src="{{ baseUrl }}/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="{{ baseUrl }}/bower_components/google-code-prettify/src/prettify.js"></script>
<script src="{{ baseUrl }}/node_modules/jquery/dist/jquery.min.js"></script>
<script src="{{ baseUrl }}/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="{{ baseUrl }}/node_modules/google-code-prettify/src/prettify.js"></script>

<script>
$(function() {
Expand All @@ -112,21 +114,6 @@
});
</script>

<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://mnapoli.piwikpro.com/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 2]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript';
g.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="https://mnapoli.piwikpro.com/piwik.php?idsite=2" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
{% endblock %}

</body>
Expand Down
63 changes: 63 additions & 0 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions website/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"dependencies": {
"bootstrap": "^3.2",
"font-awesome": "^4.7.0",
"google-code-prettify": "^1.0.0",
"jquery": "^3.6.1"
}
}

0 comments on commit 8aa0419

Please sign in to comment.