Coder Social home page Coder Social logo

Comments (7)

Razoric480 avatar Razoric480 commented on July 23, 2024

It's actually stored in the export_presets.cfg, and is set per-preset. Under GDScript it'd be something like:

var file := File.new()
if file_exists("res://export_presets.cfg"):
	var export_config := ConfigFile.new()
	var config_error := export_config.load("res://export_presets.cfg")
	if config_error == OK:
		var product_version = export_config.get_value(
				"preset.0.options",
				"application/product_version"
		)
		if product_version:
			print(product_version)

For things that aren't going to be exported, it's not exactly convenient. May need to add our own string in the ProjectSettings as custom data, or edit the reference.json file once it's been generated.

from gdscript-docs-maker.

Razoric480 avatar Razoric480 commented on July 23, 2024

There's also this plugin that I stumbled on, though it's for 2.1 and it hasn't been updated in 2 years.

from gdscript-docs-maker.

Calinou avatar Calinou commented on July 23, 2024

This pull request should solve this issue once it's merged 🙂

from gdscript-docs-maker.

NathanLovato avatar NathanLovato commented on July 23, 2024

Thanks, I'll look at the version format and implement something sometime

from gdscript-docs-maker.

NathanLovato avatar NathanLovato commented on July 23, 2024

How about writing this? Where should I put the version number? The tool generates standalone markdown files for each class. Should we write the version number in each of them? Or should we write an index.md file with e.g. a TOC and the main project information?

from gdscript-docs-maker.

Razoric480 avatar Razoric480 commented on July 23, 2024

The project.godot DOES have a Project Name and Project Description. Seems like pretty apt to put that in a main index.

And if we add categories, we can make the TOC work pretty well. Which brings us back to #29

from gdscript-docs-maker.

NathanLovato avatar NathanLovato commented on July 23, 2024

Alright I'll mark this as solved and move the requirements to #29

from gdscript-docs-maker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.