short url way to actual api version of class ?

5 years ago

chemix
Gold Partner | 1031
+
0
-

Hi, is there any way how to create permanent, live and actual link? for example

api.nette.org/go/ArrayHash .. and this link will be live and actual forever :)

I'm writing article and I must use specific version, and i think it's not necessary.

5 years ago

Jan Tvrdík
Nette guru | 2559
+
+1
-

Not possible, because in the future versions the class may not exists at all. You can however use
api.nette.org/2/Nette.Utils.ArrayHash.html or
api.nette.org/2.2/Nette.Utils.ArrayHash.html instead of
api.nette.org/2.2/Nette.Utils.ArrayHash.html

5 years ago

chemix
Gold Partner | 1031
+
0
-

this looks fine api.nette.org/2/Nette.Utils.ArrayHash.html …

but :) …

if in the future class not exist in last version of framework … just show page with links to older versions?

5 years ago

David Grudl
Nette Core | 6872
+
+2
-
- [[api:Nette\Application\UI\Presenter]]
- [[api:Nette\Application\UI\Presenter::run()]]
- [[api:Nette\Application\UI\Presenter::$onShutdown]]
- [[The Presenter |api:Nette\Application\UI\Presenter]]

5 years ago

chemix
Gold Partner | 1031
+
0
-

but this works only on nette texy engine :( Do this please for “URL API”

https://go.nette.org/api:Nette\Application\UI\Presenter
https://go.nette.org/api:Nette\Application\UI\Presenter::run
https://go.nette.org/api:Nette\Application\UI\Presenter::$onShutdown

;-)

5 years ago

MartyIX
Member | 219
+
+1
-

@chemix: I believe that your readers would be grateful to know what version you used at the time of writing the article. If you try to write an article for current and future versions of Nette then you will most definitely fail..

4 years ago

esorimer
Member | 108
+
0
-

https://github.com/…ravidla.texy

refers to API 2.2.9 and no to 2.3.3. See

https://pla.nette.org/…cni-pravidla

Why?