Skip to content

Commit

Permalink
Use basepath feature from tikui-core 2.x.x to prevent basedir usage (#36
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Gnuk authored Jul 25, 2022
1 parent 743af12 commit ab75ee6
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2019 Arnaud Freismuth
Copyright (c) 2022 Anthony Rey

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tikui/cli",
"version": "1.3.1",
"version": "2.0.0",
"description": "Command lines tool for Tikui",
"main": "index.js",
"scripts": {
Expand All @@ -18,11 +18,11 @@
"CLI"
],
"author": {
"name": "Arnaud Freismuth"
"name": "Anthony Rey"
},
"contributors": [
{
"name": "Anthony Rey"
"name": "Arnaud Freismuth"
},
{
"name": "Jérémie Tisserand"
Expand Down
8 changes: 4 additions & 4 deletions src/cli/generate-project/atomic/src/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ block content
.tikui-vertical-spacing--line
ul.tikui-list
li
a.tikui-link(href='/atom/atom.html') Atoms
a.tikui-link(href='[[TIKUI_BASEPATH]]atom/atom.html') Atoms
li
a.tikui-link(href='/molecule/molecule.html') Molecules
a.tikui-link(href='[[TIKUI_BASEPATH]]molecule/molecule.html') Molecules
li
a.tikui-link(href='/organism/organism.html') Organisms
a.tikui-link(href='[[TIKUI_BASEPATH]]organism/organism.html') Organisms
li
a.tikui-link(href='/template/template.html') Templates
a.tikui-link(href='[[TIKUI_BASEPATH]]template/template.html') Templates
10 changes: 5 additions & 5 deletions src/cli/generate-project/atomic/src/layout-documentation.pug
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ block header
block vars
-let active='';
-const isActive = current => current === active;
+tikui-navbar('/', 'Tikui')
+tikui-navbar-item('/atom/atom.html', 'Atoms', isActive('atom'))
+tikui-navbar-item('/molecule/molecule.html', 'Molecules', isActive('molecule'))
+tikui-navbar-item('/organism/organism.html', 'Organisms', isActive('organism'))
+tikui-navbar-item('/template/template.html', 'Templates', isActive('template'))
+tikui-navbar('[[TIKUI_BASEPATH]]', 'Tikui')
+tikui-navbar-item('[[TIKUI_BASEPATH]]atom/atom.html', 'Atoms', isActive('atom'))
+tikui-navbar-item('[[TIKUI_BASEPATH]]molecule/molecule.html', 'Molecules', isActive('molecule'))
+tikui-navbar-item('[[TIKUI_BASEPATH]]organism/organism.html', 'Organisms', isActive('organism'))
+tikui-navbar-item('[[TIKUI_BASEPATH]]template/template.html', 'Templates', isActive('template'))
2 changes: 1 addition & 1 deletion src/cli/generate-project/common/src/layout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ html
meta(name='viewport' content='width=device-width, initial-scale=1, shrink-to-fit=no')
block title
title Tikui
link(href='/tikui.css' rel='stylesheet')
link(href='[[TIKUI_BASEPATH]]tikui.css' rel='stylesheet')
body
block body
p Please include a body here.
4 changes: 2 additions & 2 deletions src/cli/generate-project/templated/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"prepare": "husky install"
},
"dependencies": {
"@tikui/core": "^1.5.2",
"@tikui/core": "^2.0.0",
"@types/concurrently": "^7.0.0",
"tikuidoc-tikui": "^3.0.0"
"tikuidoc-tikui": "^4.0.0"
},
"devDependencies": {
"concurrently": "^7.2.2",
Expand Down

0 comments on commit ab75ee6

Please sign in to comment.